You are here

function MethodProphecySpec::it_adds_NoCallsPrediction_during_shouldNotBeCalled_call in Zircon Profile 8.0

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

File

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

Class

MethodProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function it_adds_NoCallsPrediction_during_shouldNotBeCalled_call($objectProphecy) {
  $objectProphecy
    ->addMethodProphecy($this)
    ->willReturn(null);
  $this
    ->callOnWrappedObject('shouldNotBeCalled', array());
  $this
    ->getPrediction()
    ->shouldBeAnInstanceOf('Prophecy\\Prediction\\NoCallsPrediction');
}