PHPSpec\Matcher\ComparisonMatcher::getFailureException PHP Method

getFailureException() protected method

protected getFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\NotEqualException
$name string
$subject mixed
$arguments array
return PhpSpec\Exception\Example\NotEqualException
    protected function getFailureException($name, $subject, array $arguments)
    {
        return new NotEqualException(sprintf('Expected %s, but got %s.', $this->presenter->presentValue($arguments[0]), $this->presenter->presentValue($subject)), $arguments[0], $subject);
    }