spec\PhpSpec\Formatter\Presenter\Value\BaseExceptionTypePresenterSpec::it_should_present_an_error_as_a_string PHP Метод

it_should_present_an_error_as_a_string() публичный Метод

    function it_should_present_an_error_as_a_string()
    {
        if (!class_exists('\\Error')) {
            throw new SkippingException('The class Error, introduced in PHP 7, does not exist');
        }
        $this->present(new ErrorException(new \Error('foo')))->shouldReturn('[err:Error("foo")]');
    }