From 46ae90dc5e145b12fffa7e053a908a9f3e066286 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 8 Dec 2016 11:16:49 -0800 Subject: Make php generated code conform to PSR-4. (#2435) 1. Generate single file for each message. 2. Lazily initiate metadata. --- php/tests/test.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'php/tests/test.sh') diff --git a/php/tests/test.sh b/php/tests/test.sh index a6ca89b9..3635d86c 100755 --- a/php/tests/test.sh +++ b/php/tests/test.sh @@ -1,14 +1,11 @@ #!/bin/bash -# Generate test file -../../src/protoc --php_out=. test.proto test_include.proto - # Compile c extension pushd ../ext/google/protobuf/ make clean set -e # Add following in configure for debug: --enable-debug CFLAGS='-g -O0' -phpize && ./configure && make +phpize && ./configure --enable-debug CFLAGS='-g -O0' && make popd tests=( array_test.php encode_decode_test.php generated_class_test.php map_field_test.php well_known_test.php ) @@ -18,7 +15,7 @@ do echo "****************************" echo "* $t" echo "****************************" - php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` $t + php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` --bootstrap autoload.php $t echo "" done -- cgit v1.2.3