You are here

public function MethodProphecy::shouldHaveBeenCalled in Zircon Profile 8.0

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

Checks call prediction.

Return value

$this

See also

Prophecy\Prediction\CallPrediction

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

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