You are here

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

Checks call times prediction.

Parameters

int $count:

Return value

$this

See also

Prophecy\Prediction\CallTimesPrediction

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

public function shouldHaveBeenCalledTimes($count) {
  return $this
    ->shouldHave(new Prediction\CallTimesPrediction($count));
}