PHPSpec2\Matcher\CountMatcher::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 %s to have %s items, but got %s.', $this->presenter->presentValue($subject), $this->presenter->presentString(intval($arguments[0])), $this->presenter->presentString(count($subject))));
    }