File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
src/Symfony/Bridge/PhpUnit Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 3.4.0
5
+ -----
6
+
7
+ * PHPUnit 6 is installed when using PHP 7.2+
8
+
4
9
3.3.0
5
10
-----
6
11
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 = '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