Skip to content

Commit 753f836

Browse files
committed
ci: Install PHPUnit 10
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 96de697 commit 753f836

File tree

3 files changed

+262
-378
lines changed

3 files changed

+262
-378
lines changed

autotest.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ if [ -z "$PHP_EXE" ]; then
2222
fi
2323
PHP=$(which "$PHP_EXE")
2424
if [ -z "$PHPUNIT_EXE" ]; then
25-
if [ -f build/integration/vendor/bin/phpunit ]; then
26-
PHPUNIT_EXE="./build/integration/vendor/bin/phpunit"
25+
if [ -f vendor/bin/phpunit ]; then
26+
PHPUNIT_EXE="./vendor/bin/phpunit"
2727
PHPUNIT=$(readlink -f "$PHPUNIT_EXE")
2828
else
2929
PHPUNIT_EXE=phpunit
@@ -53,8 +53,8 @@ else
5353
fi
5454

5555
if ! [ -x "$PHPUNIT" ]; then
56-
echo "phpunit executable not found, please install phpunit version >= 9.0 manually or via:" >&2
57-
echo " cd build/integration && composer install" >&2
56+
echo "phpunit executable not found, please install phpunit version >= 10.5 manually or via:" >&2
57+
echo " composer install" >&2
5858
exit 3
5959
fi
6060

@@ -69,8 +69,8 @@ PHPUNIT_VERSION=$($PHPUNIT --version | cut -d" " -f2)
6969
PHPUNIT_MAJOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f1)
7070
PHPUNIT_MINOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f2)
7171

72-
if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 9 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 9 -a "$PHPUNIT_MINOR_VERSION" -ge 0 \) ]; then
73-
echo "phpunit version >= 9.0 required. Version found: $PHPUNIT_VERSION" >&2
72+
if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 10 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 10 -a "$PHPUNIT_MINOR_VERSION" -ge 5 \) ]; then
73+
echo "phpunit version >= 10.5 required. Version found: $PHPUNIT_VERSION" >&2
7474
exit 4
7575
fi
7676

vendor-bin/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
}
77
},
88
"require": {
9-
"phpunit/phpunit": "^9.6"
9+
"phpunit/phpunit": "^10.5.35"
1010
}
1111
}

0 commit comments

Comments
 (0)