diff --git a/tests/script.sh b/tests/script.sh index e9adb35..1736e57 100755 --- a/tests/script.sh +++ b/tests/script.sh @@ -3,6 +3,9 @@ find . -type "f" -iname "*.php" -exec php -l {} \; # Run tests. cd tests && phpunit --configuration phpunit.xml +if [[ "${?}" -ne 0 ]]; then + exit 1 +fi # Enforce line ending consistency in php files. crlf_file=$(find . -type "f" -iname "*.php" -exec grep --files-with-matches $'\r' {} \;)