MockBidiStreamingCall
class MockBidiStreamingCall extends BidiStreamingCall (View source)
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, callable|null $deserialize = null, MockStatus|null $status = null)
MockBidiStreamingCall constructor.
mixed|null
read()
No description
MockStatus|null|stdClass
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.
Details
protected
deserializeMessage($message, $deserialize)
No description
__construct(array $responses, callable|null $deserialize = null, MockStatus|null $status = null)
MockBidiStreamingCall constructor.
mixed|null
read()
No description
MockStatus|null|stdClass
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.