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

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

public it_ignores_any_other_exception ( Subject $subject, WrappedObject $wrapped )
$subject PhpSpec\Wrapper\Subject
$wrapped PhpSpec\Wrapper\Subject\WrappedObject
    function it_ignores_any_other_exception(Subject $subject, WrappedObject $wrapped)
    {
        $subject->callOnWrappedObject('getWrappedObject', array())->willThrow('\\Exception');
        $wrapped->getClassName()->willReturn('\\stdClass');
        $this->shouldNotThrow('\\Exception')->duringMatch('be', $subject, array(), $wrapped);
    }