diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-04-19 21:20:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 21:20:55 -0700 |
commit | b97cd573e405dd511b09a9fae124427a29741395 (patch) | |
tree | 09575aacb020ac0387d27954b4801b07da616a4a /php/tests/proto | |
parent | 7be088202bad3a89498db2e9b19afda9f3929430 (diff) | |
download | protobuf-b97cd573e405dd511b09a9fae124427a29741395.tar.gz protobuf-b97cd573e405dd511b09a9fae124427a29741395.tar.bz2 protobuf-b97cd573e405dd511b09a9fae124427a29741395.zip |
Add test for nested enum for php (#2989)
Diffstat (limited to 'php/tests/proto')
-rw-r--r-- | php/tests/proto/test.proto | 6 | ||||
-rw-r--r-- | php/tests/proto/test_no_namespace.proto | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/php/tests/proto/test.proto b/php/tests/proto/test.proto index cc9bf8c8..b6c14866 100644 --- a/php/tests/proto/test.proto +++ b/php/tests/proto/test.proto @@ -102,6 +102,12 @@ message TestMessage { NoNamespaceEnum optional_no_namespace_enum = 92; repeated NoNamespaceMessage repeated_no_namespace_message = 93; repeated NoNamespaceEnum repeated_no_namespace_enum = 94; + + enum NestedEnum { + ZERO = 0; + } + + NestedEnum optional_nested_enum = 101; } enum TestEnum { diff --git a/php/tests/proto/test_no_namespace.proto b/php/tests/proto/test_no_namespace.proto index b0f66002..3dd76764 100644 --- a/php/tests/proto/test_no_namespace.proto +++ b/php/tests/proto/test_no_namespace.proto @@ -2,6 +2,11 @@ syntax = "proto3"; message NoNamespaceMessage { int32 a = 1; + + enum NestedEnum { + ZERO = 0; + } + NestedEnum b = 2; } enum NoNamespaceEnum { |