메소드 |
설명 |
|
__construct ( array $events, CallVerifierFactory $callVerifierFactory ) |
Construct a new cardinality verifier event collection. |
|
allCalls ( ) : array |
Get all calls as an array. |
|
allEvents ( ) : array |
Get all events as an array. |
|
always ( ) |
Requires that the next verification matches for all possible items. |
|
atLeast ( integer $minimum ) |
Requires that the next verification matches a number of times greater
than or equal to $minimum. |
|
atMost ( integer $maximum ) |
Requires that the next verification matches a number of times less than
or equal to $maximum. |
|
between ( integer $minimum, integer | null $maximum ) |
Requires that the next verification matches a number of times greater
than or equal to $minimum, and less than or equal to $maximum. |
|
callAt ( integer $index ) : Eloquent\Phony\Call\Call |
Get a call by index. |
|
callCount ( ) : integer |
Get the number of calls. |
|
cardinality ( ) : Cardinality |
Get the cardinality. |
|
count ( ) : integer |
Get the event count. |
|
eventAt ( integer $index ) : Eloquent\Phony\Event\Event |
Get an event by index. |
|
eventCount ( ) : integer |
Get the number of events. |
|
firstCall ( ) : Eloquent\Phony\Call\Call |
Get the first call. |
|
firstEvent ( ) : Eloquent\Phony\Event\Event |
Get the first event. |
|
getIterator ( ) : Iterator |
Get an iterator for this collection. |
|
hasCalls ( ) : boolean |
Returns true if this collection contains any calls. |
|
hasEvents ( ) : boolean |
Returns true if this collection contains any events. |
|
lastCall ( ) : Eloquent\Phony\Call\Call |
Get the last call. |
|
lastEvent ( ) : Eloquent\Phony\Event\Event |
Get the last event. |
|
never ( ) |
Requires that the next verification never matches. |
|
once ( ) |
Requires that the next verification matches only once. |
|
resetCardinality ( ) : Cardinality |
Reset the cardinality to its default value. |
|
thrice ( ) |
Requires that the next verification matches exactly three times. |
|
times ( integer $times ) |
Requires that the next verification matches an exact number of times. |
|
twice ( ) |
Requires that the next verification matches exactly two times. |
|