Метод | Описание | |
---|---|---|
__construct ( Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, |
Construct a new event order verifier. | |
anyOrder ( ) : EventCollection | Throws an exception unless at least one event is supplied. | |
anyOrderSequence ( mixed |
Throws an exception unless the supplied event sequence contains at least one event. | |
checkAnyOrder ( ) : EventCollection | null | Checks that at least one event is supplied. | |
checkAnyOrderSequence ( mixed |
Checks if the supplied event sequence contains at least one event. | |
checkInOrder ( ) : EventCollection | null | Checks if the supplied events happened in chronological order. | |
checkInOrderSequence ( mixed |
Checks if the supplied event sequence happened in chronological order. | |
inOrder ( ) : EventCollection | Throws an exception unless the supplied events happened in chronological order. | |
inOrderSequence ( mixed |
Throws an exception unless the supplied event sequence happened in chronological order. | |
instance ( ) : |
Get the static instance of this verifier. |
Метод | Описание | |
---|---|---|
expectedEvents ( $events ) | ||
mergeEvents ( $events ) |
public __construct ( Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, |
||
$assertionRecorder | Eloquent\Phony\Assertion\AssertionRecorder | The assertion recorder to use. |
$assertionRenderer | The assertion renderer to use. |
public anyOrder ( ) : EventCollection | ||
Результат | EventCollection | The result. |
public anyOrderSequence ( mixed |
||
$events | mixed |
|
Результат | EventCollection | The result. |
public checkAnyOrder ( ) : EventCollection | null | ||
Результат | EventCollection | null | The result. |
public checkAnyOrderSequence ( mixed |
||
$events | mixed |
|
Результат | EventCollection | null | The result. |
public checkInOrder ( ) : EventCollection | null | ||
Результат | EventCollection | null | The result. |
public checkInOrderSequence ( mixed |
||
$events | mixed |
|
Результат | EventCollection | null | The result. |
public inOrder ( ) : EventCollection | ||
Результат | EventCollection | The result. |
public inOrderSequence ( mixed |
||
$events | mixed |
|
Результат | EventCollection | The result. |
public static instance ( ) : |
||
Результат | The static verifier. |