spec\PhpSpec\Wrapper\Subject\Expectation\ConstructorDecoratorSpec::it_rethrows_php_errors_as_phpspec_error_exceptions PHP Метод

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

public it_rethrows_php_errors_as_phpspec_error_exceptions ( Subject $subject, WrappedObject $wrapped )
$subject PhpSpec\Wrapper\Subject
$wrapped PhpSpec\Wrapper\Subject\WrappedObject
    function it_rethrows_php_errors_as_phpspec_error_exceptions(Subject $subject, WrappedObject $wrapped)
    {
        $subject->callOnWrappedObject('getWrappedObject', array())->willThrow('PhpSpec\\Exception\\Example\\ErrorException');
        $this->shouldThrow('PhpSpec\\Exception\\Example\\ErrorException')->duringMatch('be', $subject, array(), $wrapped);
    }