CallTimesPrediction
in package
implements
PredictionInterface
Prediction interface.
Predictions are logical test blocks, tied to should...
keyword.
Tags
Interfaces, Classes and Traits
- PredictionInterface
- Prediction interface.
Table of Contents
- $times : mixed
- $util : mixed
- __construct() : mixed
- Initializes prediction.
- check() : void
- Tests that there was exact amount of calls made.
Properties
$times
private
mixed
$times
$util
private
mixed
$util
Methods
__construct()
Initializes prediction.
public
__construct(int $times[, StringUtil $util = null ]) : mixed
Parameters
- $times : int
- $util : StringUtil = null
Return values
mixed —check()
Tests that there was exact amount of calls made.
public
check(array<string|int, Call> $calls, ObjectProphecy $object, MethodProphecy $method) : void
Parameters
- $calls : array<string|int, Call>
- $object : ObjectProphecy
- $method : MethodProphecy