mirror of
https://github.com/symfony/recipes.git
synced 2026-09-18 18:46:40 +03:00
Move loading .env files to bootstrap.php
This commit is contained in:
@@ -6,10 +6,9 @@ if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-php
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$classLoader = require dirname(__DIR__).'/vendor/autoload.php';
|
||||
App\Kernel::bootstrapEnv('test');
|
||||
$classLoader->unregister();
|
||||
|
||||
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
|
||||
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
|
||||
}
|
||||
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
|
||||
putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user