Skip to content

Commit dbe002c

Browse files
committed
Update symfony/phpunit-bridge recipe
1 parent 901dab9 commit dbe002c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

bin/phpunit

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ if (!ini_get('date.timezone')) {
66
}
77

88
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9-
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
10-
require PHPUNIT_COMPOSER_INSTALL;
11-
PHPUnit\TextUI\Command::main();
9+
if (PHP_VERSION_ID >= 80000) {
10+
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
11+
} else {
12+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
13+
require PHPUNIT_COMPOSER_INSTALL;
14+
PHPUnit\TextUI\Command::main();
15+
}
1216
} else {
1317
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
1418
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<server name="APP_ENV" value="test" force="true" />
1515
<server name="SHELL_VERBOSITY" value="-1" />
1616
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
17-
<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" />
17+
<server name="SYMFONY_PHPUNIT_VERSION" value="9.6" />
1818
</php>
1919

2020
<testsuites>

symfony.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@
334334
"version": "v6.0.0"
335335
},
336336
"symfony/phpunit-bridge": {
337-
"version": "6.4",
337+
"version": "7.0",
338338
"recipe": {
339339
"repo": "github.com/symfony/recipes",
340340
"branch": "main",
341341
"version": "6.3",
342-
"ref": "01dfaa98c58f7a7b5a9b30e6edb7074af7ed9819"
342+
"ref": "1f5830c331065b6e4c9d5fa2105e322d29fcd573"
343343
},
344344
"files": [
345345
".env.test",

0 commit comments

Comments
 (0)