minor #38872 Simplify phpunit script (derrabus)
This PR was merged into the 4.4 branch.
Discussion
----------
Simplify phpunit script
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | N/A
| License | MIT
| Doc PR | N/A
This PR simplifies the `phpunit` script we use for our CI.
* Detection for Symfony 3 has been removed.
* PHPUnit 6 was dropped.
* PHPUnit 7.5 is now used on the PHP 7.1 run.
Commits
-------
447d9c22f6
Simplify phpunit script.
This commit is contained in:
commit
73512d8734
17
phpunit
17
phpunit
@ -8,17 +8,12 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
|
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
|
||||||
if (\PHP_VERSION_ID >= 70200) {
|
if (\PHP_VERSION_ID < 70200) {
|
||||||
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_VERSION=7.5');
|
||||||
putenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1');
|
} elseif (\PHP_VERSION_ID < 70300) {
|
||||||
}
|
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
|
||||||
if (\PHP_VERSION_ID < 70300) {
|
} else {
|
||||||
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
|
putenv('SYMFONY_PHPUNIT_VERSION=9.4');
|
||||||
} else {
|
|
||||||
putenv('SYMFONY_PHPUNIT_VERSION=9.4');
|
|
||||||
}
|
|
||||||
} elseif (\PHP_VERSION_ID >= 70000) {
|
|
||||||
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
|
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
|
||||||
|
Reference in New Issue
Block a user