From b5068a55c63c28c78508db577bb187b401625cba Mon Sep 17 00:00:00 2001 From: pierrick Date: Fri, 5 Jun 2020 20:04:59 -0400 Subject: [PATCH] Provide UT that reproduces issue #13 --- php/tests/test2/EncodeDecodeTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/php/tests/test2/EncodeDecodeTest.php b/php/tests/test2/EncodeDecodeTest.php index 9ff344495c1c..329b9dc69b42 100644 --- a/php/tests/test2/EncodeDecodeTest.php +++ b/php/tests/test2/EncodeDecodeTest.php @@ -40,6 +40,17 @@ class EncodeDecodeTest extends TestBase { + public function testIssue13() + { + $m1 = new ListValue(); + $m1->mergeFromJsonString("[1]"); + + $m2 = new ListValue(); + $m2->mergeFromJsonString("[2]"); + + $this->assertFalse($m1 == $m2); + } + public function testIssue10() { $this->assertFalse(new StringValue(['value' => 'a']) == new StringValue(['value' => 'b']));