PHPSpec\Matcher\StringEndMatcher::getFailureException PHP Method

getFailureException() protected method

protected getFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\FailureException
$name string
$subject mixed
$arguments array
return PhpSpec\Exception\Example\FailureException
    protected function getFailureException($name, $subject, array $arguments)
    {
        return new FailureException(sprintf('Expected %s to end with %s, but it does not.', $this->presenter->presentString($subject), $this->presenter->presentString($arguments[0])));
    }