File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/Symfony/Bridge/PhpUnit/bin Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
error_reporting (-1 );
17
17
18
- if (PHP_VERSION_ID >= 70200 ) {
19
- // PHPUnit 6 is required for PHP 7.2+
18
+ if (PHP_VERSION_ID >= 70100 ) {
19
+ // PHPUnit 7 requires PHP 7.1+
20
+ $ PHPUNIT_VERSION = getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '7.4 ' ;
21
+ } elseif (PHP_VERSION_ID >= 70000 ) {
22
+ // PHPUnit 6 requires PHP 7.0+
20
23
$ PHPUNIT_VERSION = getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '6.5 ' ;
21
24
} elseif (PHP_VERSION_ID >= 50600 ) {
22
- // PHPUnit 4 does not support PHP 7
25
+ // PHPUnit 5 requires PHP 5.6+
23
26
$ PHPUNIT_VERSION = getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '5.7 ' ;
24
27
} else {
25
- // PHPUnit 5.1 requires PHP 5.6 +
28
+ // PHPUnit 4.8 requires PHP 5.3.3 +
26
29
$ PHPUNIT_VERSION = '4.8 ' ;
27
30
}
28
31
You can’t perform that action at this time.
0 commit comments