aboutsummaryrefslogtreecommitdiff
path: root/php/tests/proto/test.proto
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-04-19 20:03:34 -0700
committerGitHub <noreply@github.com>2017-04-19 20:03:34 -0700
commit7be088202bad3a89498db2e9b19afda9f3929430 (patch)
treeb3c027b951251e4e80d173acf0655a3c333ceb24 /php/tests/proto/test.proto
parent190b5270c8717ca343db42da489e5e7d6d9efb2c (diff)
downloadprotobuf-7be088202bad3a89498db2e9b19afda9f3929430.tar.gz
protobuf-7be088202bad3a89498db2e9b19afda9f3929430.tar.bz2
protobuf-7be088202bad3a89498db2e9b19afda9f3929430.zip
Enum defined without package have incorrect class name. (#2988)
Fix the bug by sharing the code for generating class name for both message and enum.
Diffstat (limited to 'php/tests/proto/test.proto')
-rw-r--r--php/tests/proto/test.proto6
1 files changed, 6 insertions, 0 deletions
diff --git a/php/tests/proto/test.proto b/php/tests/proto/test.proto
index 1a47a3f2..cc9bf8c8 100644
--- a/php/tests/proto/test.proto
+++ b/php/tests/proto/test.proto
@@ -1,6 +1,7 @@
syntax = "proto3";
import 'proto/test_include.proto';
+import 'proto/test_no_namespace.proto';
import 'proto/test_prefix.proto';
package foo;
@@ -96,6 +97,11 @@ message TestMessage {
// Reserved for non-existing field test.
// int32 non_exist = 89;
+
+ NoNamespaceMessage optional_no_namespace_message = 91;
+ NoNamespaceEnum optional_no_namespace_enum = 92;
+ repeated NoNamespaceMessage repeated_no_namespace_message = 93;
+ repeated NoNamespaceEnum repeated_no_namespace_enum = 94;
}
enum TestEnum {