PHP 클래스 Eloquent\Phony\Event\EventOrderVerifier

파일 보기 프로젝트 열기: eloquent/phony

공개 메소드들

메소드 설명
__construct ( Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer ) Construct a new event order verifier.
anyOrder ( ) : EventCollection Throws an exception unless at least one event is supplied.
anyOrderSequence ( mixed $events ) : EventCollection 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 $events ) : EventCollection | null 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 $events ) : EventCollection | null 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 $events ) : EventCollection Throws an exception unless the supplied event sequence happened in chronological order.
instance ( ) : EventOrderVerifier Get the static instance of this verifier.

비공개 메소드들

메소드 설명
expectedEvents ( $events )
mergeEvents ( $events )

메소드 상세

__construct() 공개 메소드

Construct a new event order verifier.
public __construct ( Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer )
$assertionRecorder Eloquent\Phony\Assertion\AssertionRecorder The assertion recorder to use.
$assertionRenderer Eloquent\Phony\Assertion\AssertionRenderer The assertion renderer to use.

anyOrder() 공개 메소드

Throws an exception unless at least one event is supplied.
public anyOrder ( ) : EventCollection
리턴 EventCollection The result.

anyOrderSequence() 공개 메소드

Throws an exception unless the supplied event sequence contains at least one event.
public anyOrderSequence ( mixed $events ) : EventCollection
$events mixed
리턴 EventCollection The result.

checkAnyOrder() 공개 메소드

Checks that at least one event is supplied.
public checkAnyOrder ( ) : EventCollection | null
리턴 EventCollection | null The result.

checkAnyOrderSequence() 공개 메소드

Checks if the supplied event sequence contains at least one event.
public checkAnyOrderSequence ( mixed $events ) : EventCollection | null
$events mixed
리턴 EventCollection | null The result.

checkInOrder() 공개 메소드

Checks if the supplied events happened in chronological order.
public checkInOrder ( ) : EventCollection | null
리턴 EventCollection | null The result.

checkInOrderSequence() 공개 메소드

Checks if the supplied event sequence happened in chronological order.
public checkInOrderSequence ( mixed $events ) : EventCollection | null
$events mixed
리턴 EventCollection | null The result.

inOrder() 공개 메소드

Throws an exception unless the supplied events happened in chronological order.
public inOrder ( ) : EventCollection
리턴 EventCollection The result.

inOrderSequence() 공개 메소드

Throws an exception unless the supplied event sequence happened in chronological order.
public inOrderSequence ( mixed $events ) : EventCollection
$events mixed
리턴 EventCollection The result.

instance() 공개 정적인 메소드

Get the static instance of this verifier.
public static instance ( ) : EventOrderVerifier
리턴 EventOrderVerifier The static verifier.