{ "manifests": { "symfony/phpunit-bridge": { "manifest": { "copy-from-recipe": { ".env.test": ".env.test", "bin/": "%BIN_DIR%/", "config/": "%CONFIG_DIR%/", "phpunit.xml.dist": "phpunit.xml.dist", "tests/": "tests/" }, "gitignore": [ ".phpunit", "/phpunit.xml" ], "post-install-output": [ " ", " How to test? ", " ", "", " * Write test cases in the tests/ folder", " * Run php bin/phpunit" ] }, "files": { ".env.test": { "contents": [ "# define your env variables for the test env here", "KERNEL_CLASS='App\\Kernel'", "APP_SECRET='s$cretf0rt3st'", "SYMFONY_DEPRECATIONS_HELPER=999999", "" ], "executable": false }, "bin/phpunit": { "contents": [ "#!/usr/bin/env php", "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['APP_ENV'] = $_ENV['APP_ENV'] = $_SERVER['APP_ENV'] ?: $_ENV['APP_ENV'] ?: '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 }, "config/services_test.yaml": { "contents": [ "services:", " _defaults:", " public: true", "", " # If you need to access services in a test, create an alias", " # and then fetch that alias from the container. As a convention,", " # aliases are prefixed with test. For example:", " #", " # test.App\\Service\\MyService: '@App\\Service\\MyService'", "" ], "executable": false }, "phpunit.xml.dist": { "contents": [ "", "", "", "", " ", " ", " ", " ", " ", "", " ", " ", " tests", " ", " ", "", " ", " ", " src", " ", " ", "", " ", " ", " ", "", "" ], "executable": false }, "tests/.gitignore": { "contents": [ "" ], "executable": false } }, "ref": "daae62fe8ac418b2ff8c4d56edbf1aa517aa6287" } } }