spec\Prophecy\Prophecy\MethodProphecySpec::it_records_prediction_through_should_method PHP Method

it_records_prediction_through_should_method() public method

public it_records_prediction_through_should_method ( Prophecy\Prediction\PredictionInterface $prediction, $objectProphecy )
$prediction Prophecy\Prediction\PredictionInterface
    function it_records_prediction_through_should_method(PredictionInterface $prediction, $objectProphecy)
    {
        $objectProphecy->addMethodProphecy($this)->willReturn(null);
        $this->callOnWrappedObject('should', array($prediction));
        $this->getPrediction()->shouldReturn($prediction);
    }
MethodProphecySpec