Asserts that the variable is not object.

@param mixed $variable The given variable to test.
@param Throwable $exception The exception to throw if the assertion fails.
@return bool
332537
public static function assertIsNotObject($variable, Throwable $exception): bool
    {
        static::makeAssertion(!\is_object($variable), $exception);
        return true;
    }
145540
public static function assertNotFalse($condition, Throwable $exception): bool
    {
        static::makeAssertion(false !== $condition, $exception);
        return true;
    }
596557
public function unsetVariable($variable)
    {
        // Encrypt variable name?
        if (true === $this->hasEncryption()) {
            $variable = $this->encrypt($variable);
        }

        unset($_SESSION[$variable]);

        return (false === $this->issetVariable($variable));
    }
793483
protected function namespaceHandler(Throwable $exception) : ?Throwable
    {
        if ($this->namespace && $exception instanceof ClientException) {
            return $exception->withNamespace($this->namespace);
        }

        return null;
    }
38113
protected function variable($variable)
    {
        return preg_replace_callback(sprintf('/%s(\w*\.*\w*)%s/', static::GLUE, static::GLUE), function ($match) {
            if ( ! $this->has($match[1])) {
                throw new \Exception($match[1]);
            }

            return $this->variables[$match[1]];
        }, $variable);
    }
352951
public static function assertIsExecutable(string $path, Throwable $exception): string
    {
        static::makeAssertion(\is_executable($path), $exception);
        return $path;
    }
791113
public function assertIsTrue($value, $message='%s must be True', $exception='Asserts')
    {
        if (is_bool($value) === false || $value !== true) {
            $this->throwException($exception, $message, $value);
        }
    }
382591
public static function remove($variable) {
		self::startSessionIfNeeded();
		// If it exists, and we do not want to overwrite, then throw exception
		if (! self::has($variable)) {
			throw new \Exception("{$variable} does not exist in the store.");
		}

		// Unset the variable
		unset($_SESSION[$variable]);

		// Was it removed
		return ! self::has($variable);
	}
190442
public static function assert($value, $varName) {
        return !is_int($value) && $value !== null ? Exceptions::InvalidTypeException('MaybeInt', $varName, $value) : $value;
    }
990990
public static function assert($value, $varName) {
        return !is_array($value) && $value !== null ? Exceptions::InvalidTypeException('MaybeList', $varName, $value) : $value;
    }
1371386
protected function shouldExceptionBeLogged(Throwable $exception): bool
	{
		if($this->logger === null)
		{
			return false;
		}

		foreach($this->disableLoggingFor as $exceptionType)
		{
			if($exception instanceof $exceptionType)
			{
				return false;
			}
		}

		return true;
	}
1132062
public function addVariable(Variable $variable) {
        $variables = $this->getVariables();
        $key = $variable->getName();
        if(array_key_exists($key, $variables)) {
            throw new \Exception('A Variable with the name of: ' . $variable->getName() . ' already exists');
        }
        $variables[$key] = $variable;
        ksort($variables);
        $this->setVariables($variables);
    }
440601
public static function assertIsNotResource($variable, Throwable $exception): bool
    {
        static::makeAssertion(!\is_resource($variable), $exception);
        return true;
    }
152594
public function addException(\Throwable $exception)
    {
        $memory = $this->getMemory();

        $exceptions = $this->unserialize($memory);

        $exceptions[] = get_class($exception) . ": " . $exception->getMessage() . " (" . $exception->getFile() . ":" . $exception->getLine() . ")";

        $data = serialize($exceptions);

        shmop_write($memory, $data, 0);
        shmop_close($memory);
    }
606539
private function isResultVariable($variable, $variableClassUri)
    {
        $responseVariableClass = \taoResultServer_models_classes_ResponseVariable::class;
        $outcomeVariableClass = \taoResultServer_models_classes_OutcomeVariable::class;
        $class = isset($variable->class) ? $variable->class : get_class($variable->variable);

        return (null != $variable->item ||  null != $variable->test)
            && (
                $class == $outcomeVariableClass
                && $variableClassUri == $outcomeVariableClass
            ) || (
                $class == $responseVariableClass
                && $variableClassUri == $responseVariableClass
            );
    }
246915
public function setVars($variables)
    {
        if (!is_array($variables) && !$variables instanceof ArrayAccess) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Expected array or ArrayAccess object; received "%s"',
                (is_object($variables) ? get_class($variables) : gettype($variables))
            ));
        }

        // Enforce a Variables container
        if (!$variables instanceof Variables) {
            $variablesAsArray = array();
            foreach ($variables as $key => $value) {
                $variablesAsArray[$key] = $value;
            }
            $variables = new Variables($variablesAsArray);
        }

        $this->__vars = $variables;
        return $this;
    }
1250291
protected static function isIterable($variable)
    {
        if (version_compare(PHP_VERSION, 7.1) === -1) {
            return is_array($variable) || ($variable instanceof \Traversable);
        } else {
            return is_iterable($variable);
        }
    }