Skip to content

Commit

Permalink
Provide UT that reproduces issue protocolbuffers#13
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrick committed Jun 6, 2020
1 parent 12dcc7c commit b5068a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions php/tests/test2/EncodeDecodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
Expand Down

0 comments on commit b5068a5

Please sign in to comment.