more comments

pull/1429/head
Stanley Cheung 10 years ago
parent 0e08aed61c
commit 4fbc53e82d
  1. 12
      src/php/tests/interop/interop_client.php

@ -38,6 +38,7 @@ require 'empty.php';
require 'message_set.php'; require 'message_set.php';
require 'messages.php'; require 'messages.php';
require 'test.php'; require 'test.php';
/** /**
* Assertion function that always exits with an error code if the assertion is * Assertion function that always exits with an error code if the assertion is
* falsy * falsy
@ -126,7 +127,7 @@ function serviceAccountCreds($stub, $args) {
/** /**
* Run the client_streaming test. * Run the client_streaming test.
* Not tested against any server as of 2014-12-04. * Passes when run against the Node server as of 2015-04-30
* @param $stub Stub object that has service methods * @param $stub Stub object that has service methods
*/ */
function clientStreaming($stub) { function clientStreaming($stub) {
@ -149,7 +150,7 @@ function clientStreaming($stub) {
/** /**
* Run the server_streaming test. * Run the server_streaming test.
* Not tested against any server as of 2014-12-04. * Passes when run against the Node server as of 2015-04-30
* @param $stub Stub object that has service methods. * @param $stub Stub object that has service methods.
*/ */
function serverStreaming($stub) { function serverStreaming($stub) {
@ -180,7 +181,7 @@ function serverStreaming($stub) {
/** /**
* Run the ping_pong test. * Run the ping_pong test.
* Not tested against any server as of 2014-12-04. * Passes when run against the Node server as of 2015-04-30
* @param $stub Stub object that has service methods. * @param $stub Stub object that has service methods.
*/ */
function pingPong($stub) { function pingPong($stub) {
@ -214,6 +215,11 @@ function pingPong($stub) {
'Call did not complete successfully'); 'Call did not complete successfully');
} }
/**
* Run the cancel_after_first_response test.
* Passes when run against the Node server as of 2015-04-30
* @param $stub Stub object that has service methods.
*/
function cancelAfterFirstResponse($stub) { function cancelAfterFirstResponse($stub) {
$call = $stub->FullDuplexCall(); $call = $stub->FullDuplexCall();
$request = new grpc\testing\StreamingOutputCallRequest(); $request = new grpc\testing\StreamingOutputCallRequest();

Loading…
Cancel
Save