aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/unit_tests/CallTest.php
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-07-27 10:19:45 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-07-27 10:22:33 -0700
commitdb98e085704308bf03b2c68a9183336a3b37b422 (patch)
tree503c9a16ac2ccc9d1a2d17f4eb3d0eb8b5c839f4 /src/php/tests/unit_tests/CallTest.php
parent1f21f336ebe032e7dff185d551a3f48c8dcd4b5b (diff)
Exposed channel target and call peer in PHP
Diffstat (limited to 'src/php/tests/unit_tests/CallTest.php')
-rwxr-xr-xsrc/php/tests/unit_tests/CallTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/php/tests/unit_tests/CallTest.php b/src/php/tests/unit_tests/CallTest.php
index 77a2d86ce4..3d50da3251 100755
--- a/src/php/tests/unit_tests/CallTest.php
+++ b/src/php/tests/unit_tests/CallTest.php
@@ -79,4 +79,8 @@ class CallTest extends PHPUnit_Framework_TestCase{
$result = $this->call->startBatch($batch);
$this->assertTrue($result->send_metadata);
}
+
+ public function testGetPeer() {
+ $this->assertTrue($this->call->getPeer() == 'localhost:' . self::$port);
+ }
}