function MethodProphecySpec::it_checks_set_prediction_during_checkPrediction in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Prophecy/MethodProphecySpec.php \spec\Prophecy\Prophecy\MethodProphecySpec::it_checks_set_prediction_during_checkPrediction()
Parameters
\Prophecy\Argument\ArgumentsWildcard $arguments:
\Prophecy\Prediction\PredictionInterface $prediction:
\Prophecy\Call\Call $call1:
\Prophecy\Call\Call $call2:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Prophecy/ MethodProphecySpec.php, line 328
Class
Namespace
spec\Prophecy\ProphecyCode
function it_checks_set_prediction_during_checkPrediction($objectProphecy, $arguments, $prediction, $call1, $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();
}