spec\Prophecy\Prophecy\MethodProphecySpec::it_adds_itself_to_ObjectProphecy_during_call_to_should PHP Method

it_adds_itself_to_ObjectProphecy_during_call_to_should() public method

public it_adds_itself_to_ObjectProphecy_during_call_to_should ( $objectProphecy, Prophecy\Prediction\PredictionInterface $prediction )
$prediction Prophecy\Prediction\PredictionInterface
    function it_adds_itself_to_ObjectProphecy_during_call_to_should($objectProphecy, PredictionInterface $prediction)
    {
        $objectProphecy->addMethodProphecy($this)->shouldBeCalled();
        $this->callOnWrappedObject('should', array($prediction));
    }
MethodProphecySpec