PHPSpec2\Matcher\IdentityMatcher::getNegativeFailureException PHP Method

getNegativeFailureException() protected method

protected getNegativeFailureException ( $name, $subject, array $arguments )
$arguments array
    protected function getNegativeFailureException($name, $subject, array $arguments)
    {
        return new FailureException(sprintf('Not expected %s, but got one.', $this->presenter->presentValue($subject)));
    }