PHPSpec\Matcher\TraversableKeyValueMatcher::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 an element with %s key and %s value, but it does not.', $this->presenter->presentValue($subject), $this->presenter->presentValue($arguments[0]), $this->presenter->presentValue($arguments[1])));
    }