aboutsummaryrefslogtreecommitdiff
path: root/php/tests/generated_class_test.php
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2017-08-21 13:39:15 -0700
committerBo Yang <teboring@google.com>2017-08-21 13:39:15 -0700
commitdd5190980b8a9205eaf292f0cd947c3657daaeb1 (patch)
tree1c924ac0485bf23939fc6a4c3d9ce9bf4ff99418 /php/tests/generated_class_test.php
parent26ac3e8e242f1cd6de15291a9973905a14b546ba (diff)
downloadprotobuf-dd5190980b8a9205eaf292f0cd947c3657daaeb1.tar.gz
protobuf-dd5190980b8a9205eaf292f0cd947c3657daaeb1.tar.bz2
protobuf-dd5190980b8a9205eaf292f0cd947c3657daaeb1.zip
Use message name as defined in php runtime.
Diffstat (limited to 'php/tests/generated_class_test.php')
-rw-r--r--php/tests/generated_class_test.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/php/tests/generated_class_test.php b/php/tests/generated_class_test.php
index 86e68683..98918bce 100644
--- a/php/tests/generated_class_test.php
+++ b/php/tests/generated_class_test.php
@@ -14,6 +14,8 @@ use Foo\TestIncludePrefixMessage;
use Foo\TestMessage;
use Foo\TestMessage_Sub;
use Foo\TestReverseFieldOrder;
+use Foo\testLowerCaseMessage;
+use Foo\testLowerCaseEnum;
use Php\Test\TestNamespace;
class GeneratedClassTest extends TestBase
@@ -715,4 +717,14 @@ class GeneratedClassTest extends TestBase
$this->assertSame("abc", $m->getB());
$this->assertNotSame("abc", $m->getA());
}
+
+ #########################################################
+ # Test Reverse Field Order.
+ #########################################################
+
+ public function testLowerCase()
+ {
+ $m = new testLowerCaseMessage();
+ $n = testLowerCaseEnum::VALUE;
+ }
}