You are here

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

Checks currently registered [with should(...)] prediction.

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

public function checkPrediction() {
  if (null === $this->prediction) {
    return;
  }
  $this
    ->shouldHave($this->prediction);
}