File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 <php >
1111 <ini name =" error_reporting" value =" -1" />
1212 <server name =" KERNEL_CLASS" value =" PhpList\Core\Core\ApplicationKernel" />
13+ <server name =" APP_ENV" value =" test" force =" true" />
1314 </php >
1415</phpunit >
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- // Start output buffering so that headers_sent() returns false during tests.
6- // This prevents Symfony's NativeSessionStorage from throwing "headers already sent"
7- // errors caused by PHPUnit's Printer writing to STDOUT before session start.
5+ use Symfony \Component \Dotenv \Dotenv ;
6+
87ob_start ();
98
10- require_once __DIR__ . '/../vendor/autoload.php ' ;
9+ require dirname (__DIR__ ) . '/vendor/autoload.php ' ;
10+
11+ if (method_exists (Dotenv::class, 'bootEnv ' )) {
12+ (new Dotenv ())->bootEnv (dirname (__DIR__ ) . '/.env ' );
13+ }
You can’t perform that action at this time.
0 commit comments