MockGrpcTransport
class MockGrpcTransport extends GrpcTransport (View source)
internal |
Traits
Provides helper methods for gRPC support.
ServiceAddressTrait deprecated
Provides helper methods for service address handling.
Methods
__construct(mixed $mockCall = null)
No description
static GrpcTransport
build(string $apiEndpoint, array $config = [])
Builds a GrpcTransport.
from
GrpcTransport
from
GrpcTransport
from
GrpcTransport
from
GrpcTransport
PromiseInterface
from
GrpcTransport
_simpleRequest(string $method, array $arguments, callable $deserialize, array $metadata = [], array $options = [])
No description
_clientStreamRequest(string $method, callable $deserialize, array $metadata = [], array $options = [])
No description
_serverStreamRequest(string $method, array $arguments, callable $deserialize, array $metadata = [], array $options = [])
No description
_bidiRequest(string $method, callable $deserialize, array $metadata = [], array $options = [])
No description
getRequestArguments()
No description
Details
static array
validate(array $arr, array $requiredKeys)
No description
static array
validateNotNull(array $arr, array $requiredKeys)
No description
__construct(mixed $mockCall = null)
No description
static GrpcTransport
build(string $apiEndpoint, array $config = [])
Builds a GrpcTransport.
BidiStream
startBidiStreamingCall(Call $call, array $options)
Starts a bidi streaming call.
ClientStream
startClientStreamingCall(Call $call, array $options)
Starts a client streaming call.
ServerStream
startServerStreamingCall(Call $call, array $options)
Starts a server streaming call.
PromiseInterface
startUnaryCall(Call $call, array $options)
Returns a promise used to execute network requests.
protected
_simpleRequest(string $method, array $arguments, callable $deserialize, array $metadata = [], array $options = [])
No description
protected
_clientStreamRequest(string $method, callable $deserialize, array $metadata = [], array $options = [])
No description
protected
_serverStreamRequest(string $method, array $arguments, callable $deserialize, array $metadata = [], array $options = [])
No description
protected
_bidiRequest(string $method, callable $deserialize, array $metadata = [], array $options = [])
No description
getRequestArguments()
No description