Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80fcc5f

Browse filesBrowse files
committed
[PhpUnitBridge] install PHPUnit 7 on PHP 7.1 and fix requirement for PHPUnit 6
1 parent 5632dc7 commit 80fcc5f
Copy full SHA for 80fcc5f

File tree

1 file changed

+7
-4
lines changed
Filter options

1 file changed

+7
-4
lines changed

‎src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
+7-4Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515

1616
error_reporting(-1);
1717

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+
2023
$PHPUNIT_VERSION = getenv('SYMFONY_PHPUNIT_VERSION') ?: '6.5';
2124
} elseif (PHP_VERSION_ID >= 50600) {
22-
// PHPUnit 4 does not support PHP 7
25+
// PHPUnit 5 requires PHP 5.6+
2326
$PHPUNIT_VERSION = getenv('SYMFONY_PHPUNIT_VERSION') ?: '5.7';
2427
} else {
25-
// PHPUnit 5.1 requires PHP 5.6+
28+
// PHPUnit 4.8 requires PHP 5.3.3+
2629
$PHPUNIT_VERSION = '4.8';
2730
}
2831

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.