Use PHPUnit 8.3 on Travis when possible

This commit is contained in:
Nicolas Grekas 2019-08-08 23:20:20 +02:00 committed by Jérémy Derussé
parent d851a794fc
commit de5256b78b
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
exit(1);
}
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
if (\PHP_VERSION_ID >= 70400) {
putenv('SYMFONY_PHPUNIT_VERSION=8.2');
if (\PHP_VERSION_ID >= 70200) {
putenv('SYMFONY_PHPUNIT_VERSION=8.3');
} elseif (\PHP_VERSION_ID >= 70000) {
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
}