aboutsummaryrefslogtreecommitdiff
path: root/php/tests/encode_decode_test.php
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-02-11 16:36:17 -0800
committerGitHub <noreply@github.com>2017-02-11 16:36:17 -0800
commit74eb9a0a304a3261f3c83e100f51081986ac8ba6 (patch)
treed7171743decd0b21fdf60fc76d5fd0509ebceeda /php/tests/encode_decode_test.php
parentef927cc428db7bf41d3a593a16a8f1a0fe6306c5 (diff)
downloadprotobuf-74eb9a0a304a3261f3c83e100f51081986ac8ba6.tar.gz
protobuf-74eb9a0a304a3261f3c83e100f51081986ac8ba6.tar.bz2
protobuf-74eb9a0a304a3261f3c83e100f51081986ac8ba6.zip
Add clear method to PHP message (#2700)
Diffstat (limited to 'php/tests/encode_decode_test.php')
-rw-r--r--php/tests/encode_decode_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/tests/encode_decode_test.php b/php/tests/encode_decode_test.php
index 7eb815ad..3218aa63 100644
--- a/php/tests/encode_decode_test.php
+++ b/php/tests/encode_decode_test.php
@@ -22,7 +22,8 @@ class EncodeDecodeTest extends TestBase
$this->expectFields($from);
$data = $from->encode();
- $this->assertSame(TestUtil::getGoldenTestMessage(), $data);
+ $this->assertSame(bin2hex(TestUtil::getGoldenTestMessage()),
+ bin2hex($data));
}
public function testDecode()