aboutsummaryrefslogtreecommitdiff
path: root/php/tests/generated_class_test.php
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-05-29 15:30:47 -0700
committerGitHub <noreply@github.com>2017-05-29 15:30:47 -0700
commit282fb9e68ec101b7b7616a45279427944afc3e6b (patch)
treebb7d92efef2d228e62c47ec3ce8951c8fd567b0b /php/tests/generated_class_test.php
parent4d5daf4ef97918176b892dbedce17b1d854ffe8e (diff)
downloadprotobuf-282fb9e68ec101b7b7616a45279427944afc3e6b.tar.gz
protobuf-282fb9e68ec101b7b7616a45279427944afc3e6b.tar.bz2
protobuf-282fb9e68ec101b7b7616a45279427944afc3e6b.zip
Add ARRAY for reserved name (#3150)
Diffstat (limited to 'php/tests/generated_class_test.php')
-rw-r--r--php/tests/generated_class_test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/php/tests/generated_class_test.php b/php/tests/generated_class_test.php
index b42397bb..be641b6e 100644
--- a/php/tests/generated_class_test.php
+++ b/php/tests/generated_class_test.php
@@ -876,6 +876,7 @@ class GeneratedClassTest extends TestBase
$m = new \Foo\TestMessage_Empty();
$m = new \Foo\PBEmpty();
$m = new \PrefixEmpty();
+ $m = new \Foo\PBARRAY();
}
#########################################################
@@ -886,8 +887,8 @@ class GeneratedClassTest extends TestBase
{
$m = (new TestMessage())
->setOptionalInt32(1)
- ->setOptionalInt64(2);
+ ->setOptionalUInt32(2);
$this->assertSame(1, $m->getOptionalInt32());
- $this->assertSame(2, $m->getOptionalInt64());
+ $this->assertSame(2, $m->getOptionalUInt32());
}
}