spec\Prophecy\Promise\ThrowPromiseSpec::it_instantiates_and_throws_exception_from_provided_classname PHP Method

it_instantiates_and_throws_exception_from_provided_classname() public method

public it_instantiates_and_throws_exception_from_provided_classname ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
    function it_instantiates_and_throws_exception_from_provided_classname(ObjectProphecy $object, MethodProphecy $method)
    {
        $this->beConstructedWith('InvalidArgumentException');
        $this->shouldThrow('InvalidArgumentException')->duringExecute(array(), $object, $method);
    }