You are here

public function MethodProphecy::shouldNotBeCalled 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::shouldNotBeCalled()

Sets no calls prediction to the prophecy.

Return value

$this

See also

Prophecy\Prediction\NoCallsPrediction

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

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