Updated phpunit-bridge recipe

This commit is contained in:
Jan Böhmer 2023-12-03 23:24:33 +01:00
parent fd645a0bce
commit 15411d6c81
2 changed files with 9 additions and 5 deletions

View file

@ -6,9 +6,13 @@ if (!ini_get('date.timezone')) {
} }
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) { if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php'); if (PHP_VERSION_ID >= 80000) {
require PHPUNIT_COMPOSER_INSTALL; require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
PHPUnit\TextUI\Command::main(); } else {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
}
} else { } else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) { if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n"; echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";

View file

@ -638,12 +638,12 @@
"version": "v5.3.8" "version": "v5.3.8"
}, },
"symfony/phpunit-bridge": { "symfony/phpunit-bridge": {
"version": "6.3", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "6.3", "version": "6.3",
"ref": "01dfaa98c58f7a7b5a9b30e6edb7074af7ed9819" "ref": "1f5830c331065b6e4c9d5fa2105e322d29fcd573"
}, },
"files": [ "files": [
".env.test", ".env.test",