You are here

public function PredictionInterface::check in Zircon Profile 8

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

Tests that double fulfilled prediction.

Parameters

Call[] $calls:

ObjectProphecy $object:

MethodProphecy $method:

Return value

void

Throws

object

4 methods override PredictionInterface::check()
CallbackPrediction::check in vendor/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php
Executes preset callback.
CallPrediction::check in vendor/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php
Tests that there was at least one call.
CallTimesPrediction::check in vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php
Tests that there was exact amount of calls made.
NoCallsPrediction::check in vendor/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php
Tests that there were no calls made.

File

vendor/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php, line 36

Class

PredictionInterface
Prediction interface. Predictions are logical test blocks, tied to `should...` keyword.

Namespace

Prophecy\Prediction

Code

public function check(array $calls, ObjectProphecy $object, MethodProphecy $method);