diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-05-29 15:30:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-29 15:30:47 -0700 |
commit | 282fb9e68ec101b7b7616a45279427944afc3e6b (patch) | |
tree | bb7d92efef2d228e62c47ec3ce8951c8fd567b0b /php/tests/generated_class_test.php | |
parent | 4d5daf4ef97918176b892dbedce17b1d854ffe8e (diff) | |
download | protobuf-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.php | 5 |
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()); } } |