From 7371f51dbe883704ca6974e306179718ded9f9c7 Mon Sep 17 00:00:00 2001 From: Jeff McKenna Date: Sun, 7 Jul 2024 16:22:52 -0300 Subject: [PATCH] upgrade to PHPUnit 11 --- ci/build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/build.sh b/ci/build.sh index 0be7c518a5..3cbdf1db56 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -54,10 +54,8 @@ python -m http.server &> /dev/null & # get PHPUnit echo "PHP version" php -v -PHPVersion=$(php -v|grep --only-matching --perl-regexp "(PHP )\d+\.\\d+\.\\d+"); -PHPVersionMinor=${PHPVersion::0-2}; -echo "here: $PHPVersionMinor" -if [ ${PHPVersionMinor} > 8.1 ]; then +PHPVersionMinor=$(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3); +if [ ${PHPVersionMinor} > 81 ]; then cd php && curl -LO https://phar.phpunit.de/phpunit-11.phar echo "PHPUnit version" php phpunit-11.phar --version