Perform a false assertion.

@param mixed  $value
@param string $message
771098
public function isFalse($value, $message = '')
    {
        $this->assertion->setActual($value);

        return $this->assertion->to->be->false($message);
    }
473955
public function isValid($value) {
		if ($this->instance === null) {
			throw new ValidationFailure('Reference class or interface wasn\'t been suplied');
		}
		
		if ($value instanceof $this->instance) {
			return true;
		}
		
		$this->addMessage('Value must be an instance of the "' . $this->instance . '"');
		
		return false;
	}
627564
public static function isNumeric($value, $message = null)
    {
        if (!is_numeric($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected numeric, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
1316502
static public function notBlank($value, $message = null, $propertyPath = null)
        {
            if (false === $value || (empty($value) && '0' != $value)) {
                $message = $message ?: sprintf(
                    'Value "%s" is blank, but was expected to contain a value.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::INVALID_NOT_BLANK, $propertyPath);
            }
        }
947418
public function setValue($value)
    {
        if ($this->acceptsArguments()) {
            $this->value = $value;
        } else {
            $this->value = (boolean) $value;
        }
    }
920484
public function isValid($value)
    {
        $result = filter_var($value, FILTER_VALIDATE_EMAIL);
        if (!$result) {
            $this->addMessage('email');
        }
        return (boolean) $result;
    }
1244892
static public function classExists($value, $message = null, $propertyPath = null)
        {
            if (!class_exists($value)) {
                $message = $message ?: sprintf(
                    'Class "%s" does not exist.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::INVALID_CLASS, $propertyPath);
            }
        }
703984
public function isCallable($value, $message = '')
    {
        $this->assertion->setActual($value);

        return $this->assertion->to->satisfy('is_callable', $message);
    }
855702
private static function message($value): bool
    {
        return \is_object($value) and
            (false === $value instanceof \Closure) and
            (false === $value instanceof \Generator)
        ;
    }
116154
public static Boolean assertFalse(Boolean value, String message) {
        if (Boolean.valueOf(value))
            throw new IllegalArgumentException(message);
        return value;
    }
1148075
public static function keyExists($value, $key, $message = null)
    {
        if (!array_key_exists($key, $value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected array key %2$s to exist',
                Helper::typeToString($value),
                Helper::valueToString($key)
            ));
        }
    }
557754
private function assertArrayValue($value, $message = null)
    {
        if (!is_array($value)) {
            return $this->failedAssert(sprintf('value is an array, got "%s".', is_object($value) ? get_class($value) : gettype($value)), $message);
        }

        return true;
    }
136282
public function isNotCallable($value, $message = '')
    {
        $this->assertion->setActual($value);

        return $this->assertion->to->not->satisfy('is_callable', $message);
    }
161907
public static function isScalar($value, $message = null)
    {
        if (!is_scalar($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected scalar, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
1240998
public function run( $field, $value, $message = null ) {
        $this->field   = $field;
        $this->message = $message;
        $value = preg_replace('/^[\pZ\pC]+|[\pZ\pC]+$/u', '', $value);

        return !empty($value);
    }
253382
public function run( $field, $value, $message = null ) {
        $this->field   = $field;
        $this->message = $message;

        return filter_var( $value, FILTER_VALIDATE_URL ) !== false;
    }
1076125
public static function isResource($value, $message = null)
    {
        if (!is_resource($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected resource, but got %s',
                Helper::typeToString($value)
            ));
        }
    }