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

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

public it_instantiates_exceptions_with_required_arguments ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
    function it_instantiates_exceptions_with_required_arguments(ObjectProphecy $object, MethodProphecy $method)
    {
        $this->beConstructedWith('spec\\Prophecy\\Promise\\RequiredArgumentException');
        $this->shouldThrow('spec\\Prophecy\\Promise\\RequiredArgumentException')->duringExecute(array(), $object, $method);
    }