You are here

function MethodProphecySpec::it_adds_CallTimesPrediction_during_shouldBeCalledTimes_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_CallTimesPrediction_during_shouldBeCalledTimes_call()

File

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

Class

MethodProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function it_adds_CallTimesPrediction_during_shouldBeCalledTimes_call($objectProphecy) {
  $objectProphecy
    ->addMethodProphecy($this)
    ->willReturn(null);
  $this
    ->callOnWrappedObject('shouldBeCalledTimes', array(
    5,
  ));
  $this
    ->getPrediction()
    ->shouldBeAnInstanceOf('Prophecy\\Prediction\\CallTimesPrediction');
}