php: fix minor style discrepency

pull/7489/head
Stanley Cheung 8 years ago
parent 1f45b40f5c
commit 4f37dc3ca9
  1. 10
      src/php/tests/interop/interop_client.php

@ -450,7 +450,7 @@ function statusCodeAndMessage($stub)
{ {
$echo_status = new grpc\testing\EchoStatus(); $echo_status = new grpc\testing\EchoStatus();
$echo_status->setCode(2); $echo_status->setCode(2);
$echo_status->setMessage("test status message"); $echo_status->setMessage('test status message');
$request = new grpc\testing\SimpleRequest(); $request = new grpc\testing\SimpleRequest();
$request->setResponseStatus($echo_status); $request->setResponseStatus($echo_status);
@ -460,7 +460,7 @@ function statusCodeAndMessage($stub)
hardAssert($status->code === 2, hardAssert($status->code === 2,
'Received unexpected status code'); 'Received unexpected status code');
hardAssert($status->details === "test status message", hardAssert($status->details === 'test status message',
'Received unexpected status details'); 'Received unexpected status details');
$streaming_call = $stub->FullDuplexCall(); $streaming_call = $stub->FullDuplexCall();
@ -473,7 +473,7 @@ function statusCodeAndMessage($stub)
$status = $streaming_call->getStatus(); $status = $streaming_call->getStatus();
hardAssert($status->code === 2, hardAssert($status->code === 2,
'Received unexpected status code'); 'Received unexpected status code');
hardAssert($status->details === "test status message", hardAssert($status->details === 'test status message',
'Received unexpected status details'); 'Received unexpected status details');
} }
@ -570,9 +570,9 @@ function _makeStub($args)
} }
if ($test_case == 'unimplemented_method') { if ($test_case == 'unimplemented_method') {
$stub = new grpc\testing\UnimplementedServiceClient($server_address, $opts); $stub = new grpc\testing\UnimplementedServiceClient($server_address, $opts);
} else { } else {
$stub = new grpc\testing\TestServiceClient($server_address, $opts); $stub = new grpc\testing\TestServiceClient($server_address, $opts);
} }
return $stub; return $stub;

Loading…
Cancel
Save