diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2016-12-08 11:16:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-08 11:16:49 -0800 |
commit | 46ae90dc5e145b12fffa7e053a908a9f3e066286 (patch) | |
tree | e15e50f9a986bd64cd4413b135382a305701437f /php/tests/test.sh | |
parent | 631f4618a7b84cdc91949229a11a8abe5dfc4a34 (diff) | |
download | protobuf-46ae90dc5e145b12fffa7e053a908a9f3e066286.tar.gz protobuf-46ae90dc5e145b12fffa7e053a908a9f3e066286.tar.bz2 protobuf-46ae90dc5e145b12fffa7e053a908a9f3e066286.zip |
Make php generated code conform to PSR-4. (#2435)
1. Generate single file for each message.
2. Lazily initiate metadata.
Diffstat (limited to 'php/tests/test.sh')
-rwxr-xr-x | php/tests/test.sh | 7 |
1 files changed, 2 insertions, 5 deletions
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 |