mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-20 00:33:45 +01:00
Updated phpunit recipe
This commit is contained in:
@@ -314,12 +314,12 @@
|
|||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "9.6",
|
"version": "9.6",
|
||||||
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
|
"ref": "6a9341aa97d441627f8bd424ae85dc04c944f8b4"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"./.env.test",
|
".env.test",
|
||||||
"./phpunit.xml.dist",
|
"phpunit.xml.dist",
|
||||||
"./tests/bootstrap.php"
|
"tests/bootstrap.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"psr/cache": {
|
"psr/cache": {
|
||||||
|
|||||||
@@ -4,9 +4,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
use Symfony\Component\Dotenv\Dotenv;
|
use Symfony\Component\Dotenv\Dotenv;
|
||||||
require dirname(__DIR__).'/vendor/autoload.php';
|
require dirname(__DIR__).'/vendor/autoload.php';
|
||||||
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
|
|
||||||
require dirname(__DIR__).'/config/bootstrap.php';
|
if (method_exists(Dotenv::class, 'bootEnv')) {
|
||||||
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
|
||||||
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
|
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
|
||||||
}
|
}
|
||||||
if ($_SERVER['APP_DEBUG']) {
|
if ($_SERVER['APP_DEBUG']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user