aboutsummaryrefslogtreecommitdiffhomepage
path: root/conformance/conformance_php.php
diff options
context:
space:
mode:
authorGravatar Yilun Chong <yilunchong@google.com>2017-06-30 17:22:32 -0700
committerGravatar Yilun Chong <yilunchong@google.com>2017-06-30 17:22:32 -0700
commit3adb054bbfa83530ca5a5fd54a856755fd72af83 (patch)
tree4d09a00969cdc7833dca181d6910b79f5ac877ae /conformance/conformance_php.php
parenta7d5be6a910caabc4b26d73bc5c369dbc638c4c3 (diff)
add some test proto2 supported, add js proto2 supported, fixed some error
Diffstat (limited to 'conformance/conformance_php.php')
-rwxr-xr-xconformance/conformance_php.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/conformance/conformance_php.php b/conformance/conformance_php.php
index ca2292ad..c1bd9bed 100755
--- a/conformance/conformance_php.php
+++ b/conformance/conformance_php.php
@@ -23,9 +23,9 @@ require_once("Google/Protobuf/StringValue.php");
require_once("Google/Protobuf/UInt64Value.php");
require_once("Protobuf_test_messages/Proto3/ForeignMessage.php");
require_once("Protobuf_test_messages/Proto3/ForeignEnum.php");
-require_once("Protobuf_test_messages/Proto3/TestAllTypes.php");
-require_once("Protobuf_test_messages/Proto3/TestAllTypes_NestedMessage.php");
-require_once("Protobuf_test_messages/Proto3/TestAllTypes_NestedEnum.php");
+require_once("Protobuf_test_messages/Proto3/TestAllTypesProto3.php");
+require_once("Protobuf_test_messages/Proto3/TestAllTypesProto3_NestedMessage.php");
+require_once("Protobuf_test_messages/Proto3/TestAllTypesProto3_NestedEnum.php");
require_once("GPBMetadata/Conformance.php");
require_once("GPBMetadata/Google/Protobuf/Any.php");
@@ -42,10 +42,10 @@ $test_count = 0;
function doTest($request)
{
- $test_message = new \Protobuf_test_messages\Proto3\TestAllTypes();
+ $test_message = new \Protobuf_test_messages\Proto3\TestAllTypesProto3();
$response = new \Conformance\ConformanceResponse();
if ($request->getPayload() == "protobuf_payload") {
- if ($request->getMessageType() == "protobuf_test_messages.proto3.TestAllTypes") {
+ if ($request->getMessageType() == "protobuf_test_messages.proto3.TestAllTypesProto3") {
try {
$test_message->mergeFromString($request->getProtobufPayload());
} catch (Exception $e) {