aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/unit_tests
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-07-27 12:26:15 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-07-27 12:26:15 -0700
commitc0034dd10b93dccef33d92f4b1990a6ac30b06aa (patch)
tree11387b98fde3127ced81c87738e7c3f3fd4d2be1 /src/php/tests/unit_tests
parentdb98e085704308bf03b2c68a9183336a3b37b422 (diff)
review feedback: unit test of uri value too strict
Diffstat (limited to 'src/php/tests/unit_tests')
-rwxr-xr-xsrc/php/tests/unit_tests/CallTest.php2
-rwxr-xr-xsrc/php/tests/unit_tests/EndToEndTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/php/tests/unit_tests/CallTest.php b/src/php/tests/unit_tests/CallTest.php
index 3d50da3251..caff15ee11 100755
--- a/src/php/tests/unit_tests/CallTest.php
+++ b/src/php/tests/unit_tests/CallTest.php
@@ -81,6 +81,6 @@ class CallTest extends PHPUnit_Framework_TestCase{
}
public function testGetPeer() {
- $this->assertTrue($this->call->getPeer() == 'localhost:' . self::$port);
+ $this->assertTrue(is_string($this->call->getPeer()));
}
}
diff --git a/src/php/tests/unit_tests/EndToEndTest.php b/src/php/tests/unit_tests/EndToEndTest.php
index 9a1ab81acc..27e27cdfdf 100755
--- a/src/php/tests/unit_tests/EndToEndTest.php
+++ b/src/php/tests/unit_tests/EndToEndTest.php
@@ -151,6 +151,6 @@ class EndToEndTest extends PHPUnit_Framework_TestCase{
}
public function testGetTarget() {
- $this->assertTrue($this->channel->getTarget() == 'localhost:' . $this->port);
+ $this->assertTrue(is_string($this->channel->getTarget()));
}
}