File tree 1 file changed +11
-2
lines changed
Filter options
src/Symfony/Bridge/PhpUnit/bin
1 file changed +11
-2
lines changed
Original file line number Diff line number Diff line change 15
15
16
16
error_reporting (-1 );
17
17
18
- // PHPUnit 4.8 does not support PHP 7, while 5.1 requires PHP 5.6+
19
- $ PHPUNIT_VERSION = PHP_VERSION_ID >= 50600 ? getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '5.7 ' : '4.8 ' ;
18
+ if (PHP_VERSION_ID >= 70200 ) {
19
+ // PHPUnit 6 is required for PHP 7.2+
20
+ $ PHPUNIT_VERSION = getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '6.3 ' ;
21
+ } elseif (PHP_VERSION_ID >= 50600 ) {
22
+ // PHPUnit 4 does not support PHP 7
23
+ $ PHPUNIT_VERSION = getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '5.7 ' ;
24
+ } else {
25
+ // PHPUnit 5.1 requires PHP 5.6+
26
+ $ PHPUNIT_VERSION = getenv ('SYMFONY_PHPUNIT_VERSION ' ) ?: '4.8 ' ;
27
+ }
28
+
20
29
$ oldPwd = getcwd ();
21
30
$ PHPUNIT_DIR = getenv ('SYMFONY_PHPUNIT_DIR ' ) ?: (__DIR__ .'/.phpunit ' );
22
31
$ PHP = defined ('PHP_BINARY ' ) ? PHP_BINARY : 'php ' ;
You can’t perform that action at this time.
0 commit comments