Skip to content

Commit

Permalink
Use PHPUnit 9.3 on php 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Aug 10, 2020
1 parent f0778ce commit d642d85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion phpunit
Expand Up @@ -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');
}
Expand Down

0 comments on commit d642d85

Please sign in to comment.