}
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
- define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
- require PHPUNIT_COMPOSER_INSTALL;
- PHPUnit\TextUI\Command::main();
+ if (PHP_VERSION_ID >= 80000) {
+ require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
+ } else {
+ define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
+ require PHPUNIT_COMPOSER_INSTALL;
+ PHPUnit\TextUI\Command::main();
+ }
} else {
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";
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "*",
"phpunit/phpunit": "^9.0|^10.0",
- "symfony/browser-kit": "^6.0",
- "symfony/css-selector": "^6.0",
- "symfony/debug-bundle": "^6.0",
+ "symfony/browser-kit": "^6.0|^7.0",
+ "symfony/css-selector": "^6.0|^7.0",
+ "symfony/debug-bundle": "^6.0|^7.0",
"symfony/maker-bundle": "^1.0",
- "symfony/phpunit-bridge": "^6.0",
- "symfony/stopwatch": "^6.0",
- "symfony/web-profiler-bundle": "^6.0"
+ "symfony/phpunit-bridge": "^6.0|^7.0",
+ "symfony/stopwatch": "^6.0|^7.0",
+ "symfony/web-profiler-bundle": "^6.0|^7.0"
}
}
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "6.3",
- "ref": "01dfaa98c58f7a7b5a9b30e6edb7074af7ed9819"
+ "ref": "5e6e46e7bd453880707d920c99be0da5afaaaa22"
},
"files": [
".env.test",