diff options
Diffstat (limited to 'php/tests/proto')
-rw-r--r-- | php/tests/proto/test.proto | 6 | ||||
-rw-r--r-- | php/tests/proto/test_prefix.proto | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/php/tests/proto/test.proto b/php/tests/proto/test.proto index c971df21..1a47a3f2 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_prefix.proto'; package foo; @@ -100,6 +101,7 @@ message TestMessage { enum TestEnum { ZERO = 0; ONE = 1; + TWO = 2; } message TestPackedMessage { @@ -141,3 +143,7 @@ message TestUnpackedMessage { message TestPhpDoc { int32 a = 1; } + +message TestIncludePrefixMessage { + TestPrefix prefix_message = 1; +} diff --git a/php/tests/proto/test_prefix.proto b/php/tests/proto/test_prefix.proto new file mode 100644 index 00000000..04582121 --- /dev/null +++ b/php/tests/proto/test_prefix.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option php_class_prefix = "Prefix"; + +message TestPrefix { + int32 a = 1; +} |