You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: co-phpunit
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ if (!version_compare(PHP_VERSION, PHP_VERSION, '=')) {
13
13
fwrite(STDERR, sprintf('%s declares an invalid value for PHP_VERSION.' . PHP_EOL . 'This breaks fundamental functionality such as version_compare().' . PHP_EOL . 'Please use a different PHP interpreter.' . PHP_EOL, PHP_BINARY));
14
14
die(1);
15
15
}
16
-
if (version_compare('7.3.0', PHP_VERSION, '>')) {
17
-
fwrite(STDERR, sprintf('This version of PHPUnit requires PHP >= 7.3.' . PHP_EOL . 'You are using PHP %s (%s).' . PHP_EOL, PHP_VERSION, PHP_BINARY));
16
+
if (version_compare('8.1.0', PHP_VERSION, '>')) {
17
+
fwrite(STDERR, sprintf('This version of PHPUnit requires PHP >= 8.1.' . PHP_EOL . 'You are using PHP %s (%s).' . PHP_EOL, PHP_VERSION, PHP_BINARY));
@@ -45,11 +45,6 @@ if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
45
45
fwrite(STDERR, 'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL . ' composer install' . PHP_EOL . PHP_EOL . 'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL);
46
46
die(1);
47
47
}
48
-
$options = getopt('', array('prepend:'));
49
-
if (isset($options['prepend'])) {
50
-
require$options['prepend'];
51
-
}
52
-
unset($options);
53
48
if (!isset(getopt('', ['prepend:'])['prepend'])) {
0 commit comments