From d642d85cd3f2d438d0731aef0304225ea556c652 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sat, 8 Aug 2020 16:09:36 +0200 Subject: [PATCH] Use PHPUnit 9.3 on php 8. --- phpunit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpunit b/phpunit index 713594fc19..2b4412dc4d 100755 --- a/phpunit +++ b/phpunit @@ -12,7 +12,11 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) { if (false === getenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT') && false !== strpos(@file_get_contents(__DIR__.'/src/Symfony/Component/HttpKernel/Kernel.php'), 'const MAJOR_VERSION = 3;')) { putenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1'); } - putenv('SYMFONY_PHPUNIT_VERSION=8.3'); + if (\PHP_VERSION_ID >= 80000) { + putenv('SYMFONY_PHPUNIT_VERSION=9.3'); + } else { + putenv('SYMFONY_PHPUNIT_VERSION=8.3'); + } } elseif (\PHP_VERSION_ID >= 70000) { putenv('SYMFONY_PHPUNIT_VERSION=6.5'); }