allegro / php-protobuf

PHP Protobuf - Google's Protocol Buffers for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests Failed When Running php-test.php

ezxcess opened this issue · comments

I have successfully compile/configure the libraries and make changes to php.ini. I tested by running php protoc-php.php test.proto and it created the file pb_proto_test.php.

Next I ran the test file using the following command:-
php run-test.php

However, all 13 test failed. Below are except of the log:

FAILED TEST SUMMARY

Protocol Buffers embedded message parsing [tests/parse_embedded.phpt]
Protocol Buffers parseFromString throws Exception if string is not protobuf-encoded message [tests/parse_error.phpt]
Protocol Buffers repeated field parsing [tests/parse_repeated.phpt]
Protocol Buffers simple field parsing [tests/parse_simple.phpt]
Protocol Buffers repeated field accessors [tests/repeated_field_accessors.phpt]
Protocol Buffers embedded message serialization [tests/serialize_embedded.phpt]
Protocol Buffers serializeToString() throws Exception if required field not set [tests/serialize_error.phpt]
Protocol Buffers repeated field serialization [tests/serialize_repeated.phpt]
Protocol Buffers simple field serialization [tests/serialize_simple.phpt]
Protocol Buffers setting floating-point value [tests/set_float_field.phpt]
Protocol Buffers setting integer value [tests/set_int_field.phpt]
Protocol Buffers setting object value [tests/set_object_value.phpt]

Protocol Buffers setting string value [tests/set_string_field.phpt]

Can someone please advice me what I am doing wrong. Thanks.