PHPSpec\Matcher\CallbackMatcher::getNegativeFailureException PHP Method

getNegativeFailureException() protected method

protected getNegativeFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\FailureException
$name string
$subject mixed
$arguments array
return PhpSpec\Exception\Example\FailureException
    protected function getNegativeFailureException($name, $subject, array $arguments)
    {
        return new FailureException(sprintf('%s not expected to %s(%s), but it did.', $this->presenter->presentValue($subject), $this->presenter->presentString($name), implode(', ', array_map(array($this->presenter, 'presentValue'), $arguments))));
    }