{ "manifests": { "phpunit/phpunit": { "manifest": { "copy-from-recipe": { ".env.test": ".env.test", "phpunit.xml.dist": "phpunit.xml.dist", "config/": "%CONFIG_DIR%/", "tests/": "tests/" }, "gitignore": [ "/phpunit.xml", ".phpunit.result.cache" ], "post-install-output": [ " ", " Adding phpunit/phpunit as a dependency is discouraged in favor of Symfony's PHPUnit Bridge. ", " ", "", " * Instead:", " 1. Remove it now: composer remove --dev phpunit/phpunit", " 2. Use Symfony's bridge: composer require --dev phpunit" ] }, "files": { ".env.test": { "contents": [ "# define your env variables for the test env here", "KERNEL_CLASS='App\\Kernel'", "APP_SECRET='$ecretf0rt3st'", "SYMFONY_DEPRECATIONS_HELPER=999999", "" ], "executable": false }, "config/bootstrap.php": { "contents": [ "=1.2)", "if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {", " foreach ($env as $k => $v) {", " $_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);", " }", "} elseif (!class_exists(Dotenv::class)) {", " throw new RuntimeException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');", "} else {", " $path = dirname(__DIR__).'/.env';", " $dotenv = new Dotenv(false);", "", " // load all the .env files", " if (method_exists($dotenv, 'loadEnv')) {", " $dotenv->loadEnv($path);", " } else {", " // fallback code in case your Dotenv component is not 4.2 or higher (when loadEnv() was added)", "", " if (file_exists($path) || !file_exists($p = \"$path.dist\")) {", " $dotenv->load($path);", " } else {", " $dotenv->load($p);", " }", "", " if (null === $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) {", " $dotenv->populate(array('APP_ENV' => $env = 'dev'));", " }", "", " if ('test' !== $env && file_exists($p = \"$path.local\")) {", " $dotenv->load($p);", " $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env;", " }", "", " if (file_exists($p = \"$path.$env\")) {", " $dotenv->load($p);", " }", "", " if (file_exists($p = \"$path.$env.local\")) {", " $dotenv->load($p);", " }", " }", "}", "", "$_SERVER += $_ENV;", "$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';", "$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];", "$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';", "" ], "executable": false }, "phpunit.xml.dist": { "contents": [ "", "", "", "", " ", " ", " ", " ", " ", "", " ", " ", " tests", " ", " ", "", " ", " ", " src", " ", " ", "", "" ], "executable": false }, "tests/.gitignore": { "contents": [ "" ], "executable": false } }, "ref": "eb29b06389d7f387aa8d570e109d8ef3cbebc452" } } }