You are here

function ThrowPromiseSpec::it_instantiates_and_throws_exception_from_provided_classname in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Promise/ThrowPromiseSpec.php \spec\Prophecy\Promise\ThrowPromiseSpec::it_instantiates_and_throws_exception_from_provided_classname()

Parameters

\Prophecy\Prophecy\ObjectProphecy $object:

\Prophecy\Prophecy\MethodProphecy $method:

File

vendor/phpspec/prophecy/spec/Prophecy/Promise/ThrowPromiseSpec.php, line 23

Class

ThrowPromiseSpec

Namespace

spec\Prophecy\Promise

Code

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