PHPSpec\Matcher\BasicMatcher::positiveMatch PHP Method

positiveMatch() final public method

final public positiveMatch ( string $name, mixed $subject, array $arguments ) : mixed
$name string
$subject mixed
$arguments array
return mixed @throws FailureException
    public final function positiveMatch($name, $subject, array $arguments)
    {
        if (false === $this->matches($subject, $arguments)) {
            throw $this->getFailureException($name, $subject, $arguments);
        }
        return $subject;
    }