class MockServerStreamingCall extends ServerStreamingCall (View source)

The MockServerStreamingCall class is used to mock out the \Grpc\ServerStreamingCall class (https://github.com/grpc/grpc/blob/master/src/php/lib/Grpc/ServerStreamingCall.php)

Traits

Methods

deserializeMessage($message, $deserialize)

No description

__construct(array $responses, callable|null $deserialize = null, MockStatus|null $status = null)

MockServerStreamingCall constructor.

responses()

No description

Status
getStatus()

No description

Details

protected deserializeMessage($message, $deserialize)

No description

Parameters

$message
$deserialize

__construct(array $responses, callable|null $deserialize = null, MockStatus|null $status = null)

MockServerStreamingCall constructor.

Parameters

array $responses

A list of response objects.

callable|null $deserialize

An optional deserialize method for the response object.

MockStatus|null $status

An optional status object. If set to null, a status of OK is used.

responses()

No description

Status getStatus()

No description

Return Value

Status

Exceptions

ApiException