The MockUnaryCall class is used to mock out the \Grpc\UnaryCall class (https://github.com/grpc/grpc/blob/master/src/php/lib/Grpc/UnaryCall.php)
The MockUnaryCall object is constructed with a response object, an optional deserialize method, and an optional status. The response object and status are returned immediately from the wait() method.
- internal
CloneableInstantiable
| Methods |
| public __construct( $response = NULL, $deserialize = NULL, ?stdClass $status = NULL) MockUnaryCall constructor.
|
| public wait() Immediately return the preset response object and status.
|
| Properties |
| Methods |
protected deserializeMessage( $message, $deserialize)
|
| Properties |
| private $response = NULL |
| private $status = NULL |