You are here

function MethodProphecySpec::it_adds_CallPrediction_during_shouldBeCalled_call in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Prophecy/MethodProphecySpec.php \spec\Prophecy\Prophecy\MethodProphecySpec::it_adds_CallPrediction_during_shouldBeCalled_call()

File

vendor/phpspec/prophecy/spec/Prophecy/Prophecy/MethodProphecySpec.php, line 164

Class

MethodProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function it_adds_CallPrediction_during_shouldBeCalled_call($objectProphecy) {
  $objectProphecy
    ->addMethodProphecy($this)
    ->willReturn(null);
  $this
    ->callOnWrappedObject('shouldBeCalled', array());
  $this
    ->getPrediction()
    ->shouldBeAnInstanceOf('Prophecy\\Prediction\\CallPrediction');
}