From 9ae6c8fd3a41c8ac20d841942349044359ae23e1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 17 Dec 2020 08:48:04 +0100 Subject: [PATCH] Simplify test --- travis/run-phpunit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/run-phpunit.sh b/travis/run-phpunit.sh index 95a419b1..672a396f 100755 --- a/travis/run-phpunit.sh +++ b/travis/run-phpunit.sh @@ -20,7 +20,7 @@ then PHPUNIT_ARGS="$PHPUNIT_ARGS -d zend.enable_gc=0" fi -if [ `php -r "echo (int) version_compare(PHP_VERSION, '7.3', '>=');"` = "1" ] +if $PHPUNIT --atleast-version 9 then find tests -type f -name "*.php" -print0 | xargs -0 sed -i 's/n setUpBeforeClass()/n setUpBeforeClass(): void/g' find tests -type f -name "*.php" -print0 | xargs -0 sed -i 's/n setUp()/n setUp(): void/g'