spec\PhpSpec\Exception\ErrorExceptionSpec::let PHP Метод

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

public let ( )
    function let()
    {
        if (!class_exists('\\Error')) {
            throw new SkippingException('The class Error, introduced in PHP 7, does not exist');
        }
        $this->beConstructedWith($this->error = new \Error('This is an error', 42));
    }