Skip to content

Commit

Permalink
Store in array to allow paths with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasReschke committed May 15, 2015
1 parent 8b0c223 commit 89b0bc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autotest.sh
Expand Up @@ -55,9 +55,9 @@ fi

# PHPUnit might also be installed via a facade binary script
if [[ "$PHPUNIT" =~ \.phar$ ]]; then
PHPUNIT="$PHP $PHPUNIT"
PHPUNIT=( "$PHP" "$PHPUNIT" )
else
PHPUNIT="$PHPUNIT"
PHPUNIT=( "$PHPUNIT" )
fi

PHPUNIT_VERSION=$($PHPUNIT --version | cut -d" " -f2)
Expand Down Expand Up @@ -167,11 +167,11 @@ function execute_tests {
mkdir "coverage-html-$1"
"$PHP" -f enable_all.php | grep -i -C9999 error && echo "Error during setup" && exit 101
if [ -z "$NOCOVERAGE" ]; then
$PHPUNIT --configuration phpunit-autotest.xml --log-junit "autotest-results-$1.xml" --coverage-clover "autotest-clover-$1.xml" --coverage-html "coverage-html-$1" "$2" "$3"
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml --log-junit "autotest-results-$1.xml" --coverage-clover "autotest-clover-$1.xml" --coverage-html "coverage-html-$1" "$2" "$3"
RESULT=$?
else
echo "No coverage"
$PHPUNIT --configuration phpunit-autotest.xml --log-junit "autotest-results-$1.xml" "$2" "$3"
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml --log-junit "autotest-results-$1.xml" "$2" "$3"
RESULT=$?
fi
}
Expand Down

0 comments on commit 89b0bc1

Please sign in to comment.