You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Symfony 5, the bootstrap file might be located in `tests/` folder or even missing. Check the [Symfony documentation about custom bootstrap process](https://symfony.com/doc/current/testing/bootstrap.html) for more informations.
82
+
Example for Symfony 5:
83
+
84
+
```php
85
+
// tests/object-manager.php
86
+
87
+
use App\Kernel;
88
+
use Symfony\Component\Dotenv\Dotenv;
89
+
90
+
require __DIR__ . '/../vendor/autoload.php';
91
+
92
+
(new Dotenv())->bootEnv(__DIR__ . '/../.env');
93
+
94
+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
0 commit comments