File tree 1 file changed +7
-4
lines changed
Filter options
src/Symfony/Bridge/PhpUnit/bin 1 file changed +7
-4
lines changed
Original file line number Diff line number Diff line change @@ -45,14 +45,17 @@ $getEnvVar = function ($name, $default = false) {
45
45
return $ default ;
46
46
};
47
47
48
- if (PHP_VERSION_ID >= 70200 ) {
49
- // PHPUnit 6 is required for PHP 7.2+
48
+ if (PHP_VERSION_ID >= 70100 ) {
49
+ // PHPUnit 7 requires PHP 7.1+
50
+ $ PHPUNIT_VERSION = $ getEnvVar ('SYMFONY_PHPUNIT_VERSION ' , '7.4 ' );
51
+ } elseif (PHP_VERSION_ID >= 70000 ) {
52
+ // PHPUnit 6 requires PHP 7.0+
50
53
$ PHPUNIT_VERSION = $ getEnvVar ('SYMFONY_PHPUNIT_VERSION ' , '6.5 ' );
51
54
} elseif (PHP_VERSION_ID >= 50600 ) {
52
- // PHPUnit 4 does not support PHP 7
55
+ // PHPUnit 5 requires PHP 5.6+
53
56
$ PHPUNIT_VERSION = $ getEnvVar ('SYMFONY_PHPUNIT_VERSION ' , '5.7 ' );
54
57
} else {
55
- // PHPUnit 5.1 requires PHP 5.6 +
58
+ // PHPUnit 4.8 requires PHP 5.3.3 +
56
59
$ PHPUNIT_VERSION = '4.8 ' ;
57
60
}
58
61
You can’t perform that action at this time.
0 commit comments