PHPSpec\Matcher\StringContainMatcher::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('Expected %s not to contain %s, but it does.', $this->presenter->presentString($subject), $this->presenter->presentString($arguments[0])));
    }