From ed24a90c1a66a5bb0b2a5e45fdaac08b840ceede Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Tue, 4 Jun 2013 11:16:09 +0200 Subject: [PATCH] Integrate PHPUNIT Modify tester, chdir to tests directory and test binary refs #4068 --- test/php/runtests.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/php/runtests.sh b/test/php/runtests.sh index a8b6901f4..0caa34742 100755 --- a/test/php/runtests.sh +++ b/test/php/runtests.sh @@ -4,10 +4,18 @@ set -o nounset SCRIPTNAME=$(readlink -f $0) DIR=$(dirname $SCRIPTNAME) +PHPUNIT=$(which phpunit) + +if [[ ! -x $PHPUNIT ]]; then + echo "PHPUnit not found!" + exit 1 +fi # Make sure that the destination directory for logs and reports exists mkdir -p $DIR/../../build/log -phpunit "$@" . +cd $DIR + +$PHPUNIT "$@" . exit 0