aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ZhouyihaiDing <ddyihai@google.com>2018-05-16 13:37:22 -0700
committerGravatar ZhouyihaiDing <ddyihai@google.com>2018-05-16 13:37:57 -0700
commitc848726565da3c68f911d50b1881038719497be5 (patch)
tree5c963ea8cc54acba41ff08c664d01fbb9c6ea2db
parentb29a417643d34d0b0498059e66eb908e4cf01551 (diff)
php interceptor test nits
-rw-r--r--src/php/tests/unit_tests/InterceptorTest.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/php/tests/unit_tests/InterceptorTest.php b/src/php/tests/unit_tests/InterceptorTest.php
index 08f5abbb21..11c5b4325a 100644
--- a/src/php/tests/unit_tests/InterceptorTest.php
+++ b/src/php/tests/unit_tests/InterceptorTest.php
@@ -58,7 +58,7 @@ class InterceptorClient extends Grpc\BaseStub
/**
* A simple RPC.
- * @param \Routeguide\Point $argument input argument
+ * @param SimpleRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
*/
@@ -221,15 +221,11 @@ class InterceptorTest extends PHPUnit_Framework_TestCase
$req_text = 'client_request';
$channel_matadata_interceptor = new ChangeMetadataInterceptor();
$intercept_channel = Grpc\Interceptor::intercept($this->channel, $channel_matadata_interceptor);
- echo "create Client\n";
$client = new InterceptorClient('localhost:'.$this->port, [
'credentials' => Grpc\ChannelCredentials::createInsecure(),
], $intercept_channel);
- echo "create Call\n";
$req = new SimpleRequest($req_text);
- echo "Call created\n";
$unary_call = $client->UnaryCall($req);
- echo "start call\n";
$event = $this->server->requestCall();
$this->assertSame('/dummy_method', $event->method);
$this->assertSame(['interceptor_from_unary_request'], $event->metadata['foo']);