mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-13 03:46:32 +00:00
Allow the test script to be run from outside the tests directory
This commit is contained in:
+5
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user