You are here

public function MethodProphecy::shouldNotHaveBeenCalled in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php \Prophecy\Prophecy\MethodProphecy::shouldNotHaveBeenCalled()

Checks no calls prediction.

Return value

$this

See also

Prophecy\Prediction\NoCallsPrediction

1 call to MethodProphecy::shouldNotHaveBeenCalled()
MethodProphecy::shouldNotBeenCalled in vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
Checks no calls prediction.

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php, line 324

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

public function shouldNotHaveBeenCalled() {
  return $this
    ->shouldHave(new Prediction\NoCallsPrediction());
}