Skip to content

Commit 5096d4f

Browse files
committed
Align version number of PHPUnit and give a helping install hint
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 5d068ff commit 5096d4f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

autotest.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ else
6161
fi
6262

6363
if ! [ -x "$PHPUNIT" ]; then
64-
echo "phpunit executable not found, please install phpunit version >= 9.0" >&2
64+
echo "phpunit executable not found, please install phpunit version >= 9.0 manually or via:" >&2
65+
echo " cd build/integration && composer install" >&2
6566
exit 3
6667
fi
6768

@@ -76,8 +77,8 @@ PHPUNIT_VERSION=$($PHPUNIT --version | cut -d" " -f2)
7677
PHPUNIT_MAJOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f1)
7778
PHPUNIT_MINOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f2)
7879

79-
if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 6 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 6 -a "$PHPUNIT_MINOR_VERSION" -ge 5 \) ]; then
80-
echo "phpunit version >= 6.5 required. Version found: $PHPUNIT_VERSION" >&2
80+
if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 6 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 9 -a "$PHPUNIT_MINOR_VERSION" -ge 0 \) ]; then
81+
echo "phpunit version >= 9.0 required. Version found: $PHPUNIT_VERSION" >&2
8182
exit 4
8283
fi
8384

0 commit comments

Comments
 (0)