diff options
Diffstat (limited to 'php/ext/google/protobuf/test.php')
-rw-r--r-- | php/ext/google/protobuf/test.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php/ext/google/protobuf/test.php b/php/ext/google/protobuf/test.php new file mode 100644 index 00000000..6bbadd48 --- /dev/null +++ b/php/ext/google/protobuf/test.php @@ -0,0 +1,15 @@ +<?php + + +namespace Google\Protobuf; + +$pool = get_generated_pool(); +$pool->addMessage("TestMessage") + ->optional("optional_int32_a", "int32", 1) + ->optional("optional_int32_b", "int32", 2) + ->finalizeToPool() + ->finalize(); + +$test_message = new \TestMessage(); + +?> |