MockBidiStreamingCall
class MockBidiStreamingCall extends BidiStreamingCall (View source)
internal |
The MockBidiStreamingCall class is used to mock out the \Grpc\BidiStreamingCall class (https://github.com/grpc/grpc/blob/master/src/php/lib/Grpc/BidiStreamingCall.php)
Traits
Methods
__construct(array $responses, mixed|null $deserialize = null, stdClass $status = null)
MockBidiStreamingCall constructor.
mixed|null
read()
No description
write(Message|mixed $request, array $options = [])
Save the request object, to be retrieved via getReceivedCalls()
writesDone()
Set writesDone to true
array
popReceivedCalls()
Return a list of calls made to write(), and clear $receivedFuncCalls.
Details
protected
deserializeMessage(mixed $message, mixed $deserialize)
No description
__construct(array $responses, mixed|null $deserialize = null, stdClass $status = null)
MockBidiStreamingCall constructor.
mixed|null
read()
No description
stdClass|null
getStatus()
No description
write(Message|mixed $request, array $options = [])
Save the request object, to be retrieved via getReceivedCalls()
writesDone()
Set writesDone to true
array
popReceivedCalls()
Return a list of calls made to write(), and clear $receivedFuncCalls.