diff options
Diffstat (limited to 'src/php/tests/unit_tests')
-rwxr-xr-x | src/php/tests/unit_tests/EndToEndTest.php | 13 | ||||
-rwxr-xr-x | src/php/tests/unit_tests/SecureEndToEndTest.php | 12 |
2 files changed, 21 insertions, 4 deletions
diff --git a/src/php/tests/unit_tests/EndToEndTest.php b/src/php/tests/unit_tests/EndToEndTest.php index be801bf016..2996780dc1 100755 --- a/src/php/tests/unit_tests/EndToEndTest.php +++ b/src/php/tests/unit_tests/EndToEndTest.php @@ -52,7 +52,12 @@ class EndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); + // the server sends the status $this->assertEquals(Grpc\CALL_OK, @@ -125,7 +130,11 @@ class EndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); // start the server read $this->assertEquals(Grpc\CALL_OK, $server_call->start_read($server_tag)); diff --git a/src/php/tests/unit_tests/SecureEndToEndTest.php b/src/php/tests/unit_tests/SecureEndToEndTest.php index d14574b4f7..167022334f 100755 --- a/src/php/tests/unit_tests/SecureEndToEndTest.php +++ b/src/php/tests/unit_tests/SecureEndToEndTest.php @@ -62,7 +62,11 @@ class SecureEndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); // the server sends the status $this->assertEquals(Grpc\CALL_OK, @@ -135,7 +139,11 @@ class SecureEndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); // start the server read $this->assertEquals(Grpc\CALL_OK, $server_call->start_read($server_tag)); |