spec\Prophecy\Prophecy\MethodProphecySpec::it_checks_set_prediction_during_checkPrediction PHP Method

it_checks_set_prediction_during_checkPrediction() public method

public it_checks_set_prediction_during_checkPrediction ( $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_checks_set_prediction_during_checkPrediction($objectProphecy, ArgumentsWildcard $arguments, PredictionInterface $prediction, Call $call1, Call $call2)
    {
        $prediction->check(array($call1, $call2), $objectProphecy->getWrappedObject(), $this)->shouldBeCalled();
        $objectProphecy->findProphecyMethodCalls('getName', $arguments)->willReturn(array($call1, $call2));
        $objectProphecy->addMethodProphecy($this)->willReturn(null);
        $this->withArguments($arguments);
        $this->callOnWrappedObject('should', array($prediction));
        $this->checkPrediction();
    }
MethodProphecySpec