Default testsuite to latest PHPUnit 6.*

Necessary to fix each() function deprecation calls introduced in PHP 7.2
This commit is contained in:
Gabriel Ostrolucký 2018-05-24 23:24:34 +02:00 committed by Nicolas Grekas
parent 2fd6ab9b02
commit 37e543329a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
exit(1);
}
if (\PHP_VERSION_ID >= 70000 && !getenv('SYMFONY_PHPUNIT_VERSION')) {
putenv('SYMFONY_PHPUNIT_VERSION=6.0');
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
}
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';