Method | Description | |
---|---|---|
__construct ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, array $calls, |
Construct a new generator verifier. | |
checkReceived ( mixed $value = null ) : Eloquent\Phony\Event\EventCollection | null | Checks if the subject received the supplied value. | |
checkReceivedException ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | null | Checks if the subject received an exception of the supplied type. | |
checkReturned ( mixed $value = null ) : Eloquent\Phony\Event\EventCollection | null | Checks if the subject returned the supplied value from a generator. | |
checkThrew ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | null | Checks if an exception of the supplied type was thrown from a generator. | |
received ( mixed $value = null ) : Eloquent\Phony\Event\EventCollection | Throws an exception unless the subject received the supplied value. | |
receivedException ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | Throws an exception unless the subject received an exception of the supplied type. | |
returned ( mixed $value = null ) : Eloquent\Phony\Event\EventCollection | Throws an exception unless the subject returned the supplied value from a generator. | |
threw ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | Throws an exception unless an exception of the supplied type was thrown from a generator. |
public __construct ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, array $calls, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$calls | array | |
$matcherFactory | The matcher factory to use. | |
$callVerifierFactory | The call verifier factory to use. | |
$assertionRecorder | Eloquent\Phony\Assertion\AssertionRecorder | The assertion recorder to use. |
$assertionRenderer | The assertion renderer to use. |
public checkReceived ( mixed $value = null ) : Eloquent\Phony\Event\EventCollection | null | ||
$value | mixed | The value. |
return | Eloquent\Phony\Event\EventCollection | null | The result. |
public checkReceivedException ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | null | ||
$type | Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null | An exception to match, the type of exception, or null for any exception. |
return | Eloquent\Phony\Event\EventCollection | null | The result. |
public checkReturned ( mixed $value = null ) : Eloquent\Phony\Event\EventCollection | null | ||
$value | mixed | The value. |
return | Eloquent\Phony\Event\EventCollection | null | The result. |
public checkThrew ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | null | ||
$type | Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null | An exception to match, the type of exception, or null for any exception. |
return | Eloquent\Phony\Event\EventCollection | null | The result. |
public receivedException ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | ||
$type | Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null | An exception to match, the type of exception, or null for any exception. |
return | Eloquent\Phony\Event\EventCollection | The result. |
public threw ( Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null $type = null ) : Eloquent\Phony\Event\EventCollection | ||
$type | Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null | An exception to match, the type of exception, or null for any exception. |
return | Eloquent\Phony\Event\EventCollection | The result. |