Skip to content

Commit

Permalink
changed testcase to look for the variable phpunit instead of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixinWu16 committed Jul 29, 2024
1 parent 1933e3c commit 052983d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ fi
cd $(dirname $0)
phpunit="$(readlink -f ../../vendor/bin/phpunit)"

if { ! which phpunit >/dev/null 2>&1; } then
echo phpunit not found 1>&2
if [ ! -x "$phpunit" ]; then
echo phpunit not found, run \"composer install\" 1>&2
exit 127
fi

../artifacts/update-artifacts.sh

phpunit .
$phpunit .
exit $?

0 comments on commit 052983d

Please sign in to comment.