We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ca96aa + f8b851d commit b24f0e0Copy full SHA for b24f0e0
tests/script.sh
@@ -1,12 +1,12 @@
1
# Check syntax in php files.
2
find . -type "f" -iname "*.php" | xargs -L "1" php -l
3
4
+# Run tests.
5
+cd tests && phpunit --configuration phpunit.xml
6
+
7
# Check for trailing whitespace in php files.
8
trailing_whitespace=$(find . -type "f" -iname "*.php" -exec egrep --line-number -H " +$" {} \;)
9
if [[ ! -z "${trailing_whitespace}" ]]; then
10
echo -e "${trailing_whitespace}" | perl -pe 's/^(.*)$/Trailing whitespace found in \1/'
11
exit 1
12
fi
-
-# Run tests.
-cd tests && phpunit --configuration phpunit.xml
0 commit comments