@@ 229-237 (lines=9) @@ | ||
226 | $this->getPrediction()->shouldReturn($prediction); |
|
227 | } |
|
228 | ||
229 | function it_adds_CallbackPrediction_during_should_call_with_callback_argument(ObjectProphecy $objectProphecy) |
|
230 | { |
|
231 | $objectProphecy->addMethodProphecy($this)->willReturn(null); |
|
232 | ||
233 | $callback = function () {}; |
|
234 | ||
235 | $this->callOnWrappedObject('should', array($callback)); |
|
236 | $this->getPrediction()->shouldBeAnInstanceOf('Prophecy\Prediction\CallbackPrediction'); |
|
237 | } |
|
238 | ||
239 | function it_adds_itself_to_ObjectProphecy_during_call_to_should( |
|
240 | ObjectProphecy $objectProphecy, |
|
@@ 264-270 (lines=7) @@ | ||
261 | $this->getPrediction()->shouldBeAnInstanceOf('Prophecy\Prediction\NoCallsPrediction'); |
|
262 | } |
|
263 | ||
264 | function it_adds_CallTimesPrediction_during_shouldBeCalledTimes_call(ObjectProphecy $objectProphecy) |
|
265 | { |
|
266 | $objectProphecy->addMethodProphecy($this)->willReturn(null); |
|
267 | ||
268 | $this->callOnWrappedObject('shouldBeCalledTimes', array(5)); |
|
269 | $this->getPrediction()->shouldBeAnInstanceOf('Prophecy\Prediction\CallTimesPrediction'); |
|
270 | } |
|
271 | ||
272 | function it_adds_CallTimesPrediction_during_shouldBeCalledOnce_call(ObjectProphecy $objectProphecy) |
|
273 | { |