Skip to content

Commit b2215ca

Browse files
miaulalalamax-nextcloud
authored andcommitted
Adjust PHPUnit version
Signed-off-by: Anna Larch <[email protected]>
1 parent d9bc922 commit b2215ca

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

autotest.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# ownCloud
3+
# Nextcloud
44
#
55
# @author Vincent Petry
66
# @author Morris Jobke
@@ -10,6 +10,7 @@
1010
# @author Joas Schilling
1111
# @author Lukas Reschke
1212
# @author Jörn Friedrich Dreyer
13+
# @author Anna Larch
1314
# @copyright 2012-2015 Thomas Müller [email protected]
1415
#
1516

@@ -61,7 +62,7 @@ else
6162
fi
6263

6364
if ! [ -x "$PHPUNIT" ]; then
64-
echo "phpunit executable not found, please install phpunit version >= 9.0 manually or via:" >&2
65+
echo "phpunit executable not found, please install phpunit version >= 9.5 manually or via:" >&2
6566
echo " cd build/integration && composer install" >&2
6667
exit 3
6768
fi
@@ -77,8 +78,8 @@ PHPUNIT_VERSION=$($PHPUNIT --version | cut -d" " -f2)
7778
PHPUNIT_MAJOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f1)
7879
PHPUNIT_MINOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f2)
7980

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
81+
if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 9 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 9 -a "$PHPUNIT_MINOR_VERSION" -ge 5 \) ]; then
82+
echo "phpunit version >= 9.5 required. Version found: $PHPUNIT_VERSION" >&2
8283
exit 4
8384
fi
8485

0 commit comments

Comments
 (0)