Skip to content

Commit 96623ba

Browse files
committed
Allow the test script to be run from outside the tests directory
1 parent 5b0bbb5 commit 96623ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
set -x
2+
3+
SCRIPT_PATH="$(cd "$(dirname "$0")"; pwd -P)"
4+
cd "${SCRIPT_PATH}"
5+
26
php -S 127.0.0.1:8000 -t PHPCurlClass/ &> /dev/null &
37
pid="${!}"
48
extra_args="${@}"
59
phpunit \
6-
--configuration phpunit.xml \
10+
--configuration "phpunit.xml" \
711
--debug \
812
--verbose \
913
${extra_args}

0 commit comments

Comments
 (0)