spec\Prophecy\Promise\ThrowPromiseSpec::it_throws_provided_exception PHP Метод

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

public it_throws_provided_exception ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
    function it_throws_provided_exception(ObjectProphecy $object, MethodProphecy $method)
    {
        $this->beConstructedWith($exc = new \RuntimeException('Some exception'));
        $this->shouldThrow($exc)->duringExecute(array(), $object, $method);
    }