Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MethodProphecy.php

function MethodProphecy::shouldHaveBeenCalled

Checks call prediction.

Return value

$this

Throws

PredictionException

See also

\Prophecy\Prediction\CallPrediction

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

public function shouldHaveBeenCalled() {
    return $this->shouldHave(new Prediction\CallPrediction());
}
RSS feed
Powered by Drupal