Asserts that the variable is not numeric.

@param mixed $variable The given variable to test.
@param Throwable $exception The exception to throw if the assertion fails.
@return bool
346423
public static function assertIsNotNumeric($variable, Throwable $exception): bool
    {
        static::makeAssertion(!\is_numeric($variable), $exception);
        return true;
    }
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
            );
    }
630365
public static function isNumeric( $fact )
	{
		if ( ! $fact instanceof DOMXPathNavigator )
		{
			throw new \Exception( "Invalid fact variable passed to FactValues::isNumeric" );
		}

		$schemaType = $fact->getSchemaType();
		$type = "{$schemaType->QualifiedName->prefix}:{$schemaType->QualifiedName->localName}";
		// BMS 2018-04-09 Extra test candidate not required any more but it doesn't hurt.
		$result = \XBRL_Types::getInstance()->resolvesToBaseType( $type, array( 'xs:decimal', 'xsd:decimal' ) );

		return $result;
	}
157819
public static function assert($value, $varName) {
        NotNil::assert($value, $varName);
        return !is_string($value) ? Exceptions::InvalidTypeException('string', $varName, $value) : $value;
    }
1031099
public static function assertIsObject($variable, Throwable $exception): bool
    {
        static::makeAssertion(\is_object($variable), $exception);
        return true;
    }
935972
public static function assertIsScalar($variable, Throwable $exception): bool
    {
        static::makeAssertion(\is_scalar($variable), $exception);
        return true;
    }
546032
private static function hasPDOException(\Exception $exception)
    {
        if ($exception instanceof \PDOException) {
            return true;
        }
        if ($exception->getPrevious() === null) {
            return false;
        }
        return self::hasPDOException($exception->getPrevious());
    }
791113
public function assertIsTrue($value, $message='%s must be True', $exception='Asserts')
    {
        if (is_bool($value) === false || $value !== true) {
            $this->throwException($exception, $message, $value);
        }
    }
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);
    }
903737
public static function remove($variable) {
		// 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(self::$_store[$variable]);

		// Was it removed
		return ! self::has($variable);
	}
657750
public static function assertLooselyEquals($actual, $expected, Throwable $exception)
    {
        /** @noinspection TypeUnsafeComparisonInspection This assertion is wanted to be unsafe type. */
        static::makeAssertion($actual == $expected, $exception);
        return $actual;
    }
1203856
public static function assert($value, $varName) {
        return !self::is($value) ? Exceptions::InvalidTypeException('Url', $varName, $value) : $value;
    }
90959
public static function assertIsNotInt($variable, Throwable $exception): bool
    {
        static::makeAssertion(!\is_int($variable), $exception);
        return true;
    }
437689
public static function assertTrue($condition, Throwable $exception): bool
    {
        static::makeAssertion(true === $condition, $exception);
        return true;
    }
1201454
public static function assertIsNotTypeOf(array $types, $variable, Throwable $exception): bool
    {
        static::makeAssertion(!\in_array(\gettype($variable), $types, true), $exception);
        return true;
    }
990990
public static function assert($value, $varName) {
        return !is_array($value) && $value !== null ? Exceptions::InvalidTypeException('MaybeList', $varName, $value) : $value;
    }
593428
public function exception($exception = null)
    {
        if (!func_num_args()) {
            return $this->_exception;
        }
        $this->_exception = $exception;
        return $this;
    }