spec\Prophecy\Prophecy\MethodProphecySpec::it_sets_return_promise_during_shouldHave_call_if_none_was_set_before PHP Method

it_sets_return_promise_during_shouldHave_call_if_none_was_set_before() public method

public it_sets_return_promise_during_shouldHave_call_if_none_was_set_before ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call
    function it_sets_return_promise_during_shouldHave_call_if_none_was_set_before($objectProphecy, ArgumentsWildcard $arguments, PredictionInterface $prediction, Call $call1, Call $call2)
    {
        $objectProphecy->addMethodProphecy($this)->willReturn(null);
        $prediction->check(array($call1, $call2), $objectProphecy->getWrappedObject(), $this)->shouldBeCalled();
        $objectProphecy->findProphecyMethodCalls('getName', $arguments)->willReturn(array($call1, $call2));
        $this->withArguments($arguments);
        $this->callOnWrappedObject('shouldHave', array($prediction));
        $this->getPromise()->shouldReturnAnInstanceOf('Prophecy\\Promise\\ReturnPromise');
    }
MethodProphecySpec