PHPSpec\Matcher\BasicMatcher::negativeMatch PHP Method

negativeMatch() final public method

final public negativeMatch ( string $name, mixed $subject, array $arguments ) : mixed
$name string
$subject mixed
$arguments array
return mixed
    public final function negativeMatch($name, $subject, array $arguments)
    {
        if (true === $this->matches($subject, $arguments)) {
            throw $this->getNegativeFailureException($name, $subject, $arguments);
        }
        return $subject;
    }