You are here

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

Sets call times prediction to the prophecy.

Parameters

$count:

Return value

$this

See also

Prophecy\Prediction\CallTimesPrediction

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

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