Method |
Description |
|
__get ( string $name ) : StubVerifier |
Get a stub verifier. |
|
checkNoInteraction ( ) : Eloquent\Phony\Event\EventCollection | null |
Checks if there was no interaction with the mock. |
|
className ( ) : string |
Get the class name. |
|
clazz ( ) : ReflectionClass |
Get the class. |
|
defaultAnswerCallback ( ) : callable |
Get the default answer callback. |
|
full ( ) |
Turn the mock into a full mock. |
|
noInteraction ( ) : Eloquent\Phony\Event\EventCollection |
Throws an exception unless there was no interaction with the mock. |
|
partial ( ) |
Turn the mock into a partial mock. |
|
proxy ( object $object ) |
Use the supplied object as the implementation for all methods of the
mock. |
|
setDefaultAnswerCallback ( callable $defaultAnswerCallback ) |
Set the callback to use when creating a default answer. |
|
spy ( string $name ) : Eloquent\Phony\Spy\Spy |
Get a spy. |
|
startRecording ( ) |
Start recording calls. |
|
state ( ) : stdClass |
Get the handle state. |
|
stopRecording ( ) |
Stop recording calls. |
|
stub ( string $name, boolean $isNewRule = true ) : StubVerifier |
Get a stub verifier. |
|