PHPSpec2\Matcher\TypeMatcher::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 instance of %s, but got %s.', $this->presenter->presentString($arguments[0]), $this->presenter->presentValue($subject)));
    }