Allow the test script to be run from outside the tests directory

This commit is contained in:
Zach Borboa
2017-08-25 00:16:43 -07:00
parent 5b0bbb51cd
commit 96623ba839
+5 -1
View File
@@ -1,9 +1,13 @@
set -x
SCRIPT_PATH="$(cd "$(dirname "$0")"; pwd -P)"
cd "${SCRIPT_PATH}"
php -S 127.0.0.1:8000 -t PHPCurlClass/ &> /dev/null &
pid="${!}"
extra_args="${@}"
phpunit \
--configuration phpunit.xml \
--configuration "phpunit.xml" \
--debug \
--verbose \
${extra_args}