Merge pull request #18427 from stanley-cheung/fix-php-mac-build

Fix PHP unit test warnings
pull/18434/head
Stanley Cheung 6 years ago committed by GitHub
commit 0eca1b1031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/php/tests/unit_tests/InterceptorTest.php

@ -103,7 +103,11 @@ class ChangeMetadataInterceptor extends Grpc\Interceptor
$metadata["foo"] = array('interceptor_from_unary_request'); $metadata["foo"] = array('interceptor_from_unary_request');
return $continuation($method, $argument, $deserialize, $metadata, $options); return $continuation($method, $argument, $deserialize, $metadata, $options);
} }
public function interceptStreamUnary($method, $deserialize, array $metadata = [], array $options = [], $continuation) public function interceptStreamUnary($method,
$deserialize,
array $metadata = [],
array $options = [],
$continuation)
{ {
$metadata["foo"] = array('interceptor_from_stream_request'); $metadata["foo"] = array('interceptor_from_stream_request');
return $continuation($method, $deserialize, $metadata, $options); return $continuation($method, $deserialize, $metadata, $options);
@ -178,7 +182,11 @@ class ChangeRequestInterceptor extends Grpc\Interceptor
$argument->setData('intercepted_unary_request'); $argument->setData('intercepted_unary_request');
return $continuation($method, $argument, $deserialize, $metadata, $options); return $continuation($method, $argument, $deserialize, $metadata, $options);
} }
public function interceptStreamUnary($method, $deserialize, array $metadata = [], array $options = [], $continuation) public function interceptStreamUnary($method,
$deserialize,
array $metadata = [],
array $options = [],
$continuation)
{ {
return new ChangeRequestCall( return new ChangeRequestCall(
$continuation($method, $deserialize, $metadata, $options) $continuation($method, $deserialize, $metadata, $options)
@ -190,6 +198,7 @@ class StopCallInterceptor extends Grpc\Interceptor
{ {
public function interceptUnaryUnary($method, public function interceptUnaryUnary($method,
$argument, $argument,
$deserialize,
array $metadata = [], array $metadata = [],
array $options = [], array $options = [],
$continuation) $continuation)
@ -197,6 +206,7 @@ class StopCallInterceptor extends Grpc\Interceptor
$metadata["foo"] = array('interceptor_from_request_response'); $metadata["foo"] = array('interceptor_from_request_response');
} }
public function interceptStreamUnary($method, public function interceptStreamUnary($method,
$deserialize,
array $metadata = [], array $metadata = [],
array $options = [], array $options = [],
$continuation) $continuation)

Loading…
Cancel
Save