PHPSpec2\Matcher\TypeMatcher::getFailureException PHP Method

getFailureException() protected method

protected getFailureException ( $name, $subject, array $arguments )
$arguments array
    protected function getFailureException($name, $subject, array $arguments)
    {
        return new FailureException(sprintf('Expected an instance of %s, but got %s.', $this->presenter->presentString($arguments[0]), $this->presenter->presentValue($subject)));
    }