Updated phpunit recipe

This commit is contained in:
Jan Böhmer
2025-07-13 16:53:41 +02:00
parent a3db52b184
commit db810445fb
2 changed files with 6 additions and 7 deletions

View File

@@ -314,12 +314,12 @@
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "9.6",
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
"ref": "6a9341aa97d441627f8bd424ae85dc04c944f8b4"
},
"files": [
"./.env.test",
"./phpunit.xml.dist",
"./tests/bootstrap.php"
".env.test",
"phpunit.xml.dist",
"tests/bootstrap.php"
]
},
"psr/cache": {

View File

@@ -4,9 +4,8 @@ declare(strict_types=1);
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__).'/vendor/autoload.php';
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
require dirname(__DIR__).'/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}
if ($_SERVER['APP_DEBUG']) {