PHP 인터페이스 Eloquent\Phony\Spy\Spy

상속: extends Eloquent\Phony\Invocation\WrappedInvocable, extends Eloquent\Phony\Event\EventCollection
파일 보기 프로젝트 열기: eloquent/phony 0 사용 예제들

공개 메소드들

메소드 설명
addCall ( Eloquent\Phony\Call\Call $call ) Add a call.
setCalls ( array $calls ) Set the calls.
setUseGeneratorSpies ( boolean $useGeneratorSpies ) Turn on or off the use of generator spies.
setUseIterableSpies ( boolean $useIterableSpies ) Turn on or off the use of iterable spies.
startRecording ( ) Start recording calls.
stopRecording ( ) Stop recording calls.
useGeneratorSpies ( ) : boolean Returns true if this spy uses generator spies.
useIterableSpies ( ) : boolean Returns true if this spy uses iterable spies.

메소드 상세

addCall() 공개 메소드

Add a call.
public addCall ( Eloquent\Phony\Call\Call $call )
$call Eloquent\Phony\Call\Call The call.

setCalls() 공개 메소드

Set the calls.
public setCalls ( array $calls )
$calls array

setUseGeneratorSpies() 공개 메소드

Turn on or off the use of generator spies.
public setUseGeneratorSpies ( boolean $useGeneratorSpies )
$useGeneratorSpies boolean True to use generator spies.

setUseIterableSpies() 공개 메소드

Turn on or off the use of iterable spies.
public setUseIterableSpies ( boolean $useIterableSpies )
$useIterableSpies boolean True to use iterable spies.

startRecording() 공개 메소드

Start recording calls.
public startRecording ( )

stopRecording() 공개 메소드

Stop recording calls.
public stopRecording ( )

useGeneratorSpies() 공개 메소드

Returns true if this spy uses generator spies.
public useGeneratorSpies ( ) : boolean
리턴 boolean True if this spy uses generator spies.

useIterableSpies() 공개 메소드

Returns true if this spy uses iterable spies.
public useIterableSpies ( ) : boolean
리턴 boolean True if this spy uses iterable spies.