mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 18:16:34 +03:00
Update Flex archives
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "01a6e80dad40a4ef42dad65877f744a53a121c38"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {",
|
||||
" $_ENV += $env;",
|
||||
"} 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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "04ecbfb3121b7418265aee7b1b2151959ba430b9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!ini_get('date.timezone')) {",
|
||||
" ini_set('date.timezone', 'UTC');",
|
||||
"}",
|
||||
"",
|
||||
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
|
||||
" require PHPUNIT_COMPOSER_INSTALL;",
|
||||
" PHPUnit\\TextUI\\Command::main();",
|
||||
"} else {",
|
||||
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <coverage processUncoveredFiles=\"true\">",
|
||||
" <include>",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </include>",
|
||||
" </coverage>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "05aa34fc27227a46bb75872b0efff102bd7d77e0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!ini_get('date.timezone')) {",
|
||||
" ini_set('date.timezone', 'UTC');",
|
||||
"}",
|
||||
"",
|
||||
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
|
||||
" require PHPUNIT_COMPOSER_INSTALL;",
|
||||
" PHPUnit\\TextUI\\Command::main();",
|
||||
"} else {",
|
||||
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
" convertDeprecationsToExceptions=\"false\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <coverage processUncoveredFiles=\"true\">",
|
||||
" <include>",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </include>",
|
||||
" </coverage>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0a3b084605bd384975df457a20e9f41ca09fd4ed"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0a66a0097def4db1cd03bcb3d4a268440ae4cb47"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0e1b186400de9d4ab83363138b4eb0072c99b2ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" 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['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
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0e548dd90adba18fabd4ef419b14d361fe4d6c74"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"6.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0f9ffb0febcfe0133ba624592ea00ea28244680f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV'] ?? null) === ($env['APP_ENV'] ?? null))) {",
|
||||
" 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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "12382c1bc3998fcd50a950ac257a054ad161575a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV']) {",
|
||||
" 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 {",
|
||||
" // load all the .env files",
|
||||
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"$_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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "170be6250b77b421f02e986e2853df86c7bd6516"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "179470cb6492db92dffee208cfdb436f175c93b4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS=App\\\\Kernel",
|
||||
"APP_SECRET='s$cretf0rt3st'",
|
||||
"SHELL_VERBOSITY=-1",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
"SYMFONY_PHPUNIT_VERSION=6.5",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"$classLoader = require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"App\\Kernel::bootstrapEnv('test');",
|
||||
"$classLoader->unregister();",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "18558892bcca528b42d107357ba9a0a4bc116292"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) {",
|
||||
" // see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail",
|
||||
" putenv('SYMFONY_DEPRECATIONS_HELPER=999999');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1a47f76dcd9d5d4da1fab54fb15450bae3704c5e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1fc8201c507489d500c0538f8b40f6851463aa0d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"6.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "25fe8d35344a88627f6d24e9cd0b717752edf6be"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2955e26d3818b803d82b5de05d91805df5994d3a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2a5e673b2c4855ccb867368061d0a1a442f95fb2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2ba17ea3190d76e6e37a52378f6bca3d84891bc5"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2ebb4d138698a1da7904807b0bbbf6a00a4fba61"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2eef5e43e03e7a9cc61e41ccc7d0c76cb456666c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "33e147b643473a858f2c5e0ae761f149faebe06e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) {",
|
||||
" // see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail",
|
||||
" putenv('SYMFONY_DEPRECATIONS_HELPER=999999');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "3b3b56a9a5988dc58ff90725071cc3a6711e470e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "3f8a8c93cd47061999316f8d56edd6c2abca9308"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "41416370e732d1c8e7a0953a5ce815b641cfba0f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {",
|
||||
" $_SERVER += $env;",
|
||||
" $_ENV += $env;",
|
||||
"} 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();",
|
||||
"",
|
||||
" // 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['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
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "43a398157bbd3379d98c34006c7b10a57bce9ef9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"Run <comment>php bin/phpunit</> to launch your test suite."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.4');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "55a81726745b54cc6f8d845f1a094ed7d9ed2e32"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) {",
|
||||
" // see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail",
|
||||
" putenv('SYMFONY_DEPRECATIONS_HELPER=999999');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "5aef50b8238ad8b5ea5583c49d1c8a8e84bf5376"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"src/": "%SRC_DIR%/",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS='App\\Kernel'",
|
||||
"APP_SECRET='s$cretf0rt3st'",
|
||||
"SHELL_VERBOSITY=-1",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"src/.bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/.bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" 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['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
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "5c763badc7303c1f369c56cfe6e51fad0dc9f251"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "665d69997455e9229e028bd111913815889ad5fa"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "67db4602ce053a381219ca6df8cdcc993cb17147"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6a31d3f6598ccdb2f01dc18742cc4c8b1b2d6e1b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6afc3fd5d163819e5f89e22121046d0099f97ecd"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"src/": "%SRC_DIR%/",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"src/.bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/.bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" 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['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
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6c870367302504437c2e9124046f38e0670a799b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6d0e35f749d5f4bfe1f011762875275cd3f9874f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "70bbb50fccafba9165d6d2602c7975d6d677455e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"Run <comment>php bin/phpunit</> to launch your test suite."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.4');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "76589c0e33dbcc40151109d134a14f141ff2eeba"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "77b2d611615b0ec780621a71b92e5ac465e0d4eb"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7e941371431f5245d05c6490ada44c17eb0d27ed"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "863a46b0cd2d547c4f5255e0cdca6f7847ce9251"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "8b18825f154850f8ffa408f66b52022a00e2ca7f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!ini_get('date.timezone')) {",
|
||||
" ini_set('date.timezone', 'UTC');",
|
||||
"}",
|
||||
"",
|
||||
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
|
||||
" require PHPUNIT_COMPOSER_INSTALL;",
|
||||
" PHPUnit\\TextUI\\Command::main();",
|
||||
"} else {",
|
||||
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
" convertDeprecationsToExceptions=\"false\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <coverage processUncoveredFiles=\"true\">",
|
||||
" <include>",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </include>",
|
||||
" </coverage>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "905679249e7b10f06c572917a9022a72cbfedc04"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS=App\\\\Kernel",
|
||||
"APP_SECRET='s$cretf0rt3st'",
|
||||
"SHELL_VERBOSITY=-1",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
"SYMFONY_PHPUNIT_VERSION=6.5",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"$classLoader = require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"App\\Kernel::bootstrapEnv('test');",
|
||||
"$classLoader->unregister();",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "949c2ef159d6b28cf691a117ac60863eda2817ea"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"if (file_exists(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';",
|
||||
"} else {",
|
||||
" if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<!-- If you use phpunit-bridge directly, set -->",
|
||||
"<!-- xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\" -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- If you use phpunit-bridge directly, you can control extra behavior -->",
|
||||
" <!--",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
|
||||
" -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "96ecb38bd6370ce71cff0af755a636ba3a2bb394"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!ini_get('date.timezone')) {",
|
||||
" ini_set('date.timezone', 'UTC');",
|
||||
"}",
|
||||
"",
|
||||
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
|
||||
" require PHPUNIT_COMPOSER_INSTALL;",
|
||||
" PHPUnit\\TextUI\\Command::main();",
|
||||
"} else {",
|
||||
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
" convertDeprecationsToExceptions=\"false\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <coverage processUncoveredFiles=\"true\">",
|
||||
" <include>",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </include>",
|
||||
" </coverage>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "97cb3dc7b0f39c7cfc4b7553504c9d7b7795de96"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {",
|
||||
" $_ENV += $env;",
|
||||
"} 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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"6.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "9dbf01cf67d791746ec772fe274c4d91cbf3c9ec"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"Run <comment>php bin/phpunit</> to launch your test suite."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.4');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a12c2fb1d4f5b662016728acfa0d4c95870cd96e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/4.8/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"KERNEL_DIR\" value=\"src/\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "aa882803fdb60eeec118d9798e11eba07e906056"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV'] ?? null) === ($env['APP_ENV'] ?? null)) {",
|
||||
" 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
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b031ed0c22c7084b3908d09ece6b29c0ec2b8055"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {",
|
||||
" $_ENV += $env;",
|
||||
"} 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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"6.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b0582341f1df39aaf3a9a866cdbe49937da35984"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>./src/</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b0e6522e50c3f9d1b24a0997cb7a8615ebcc60ca"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) {",
|
||||
" // see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail",
|
||||
" putenv('SYMFONY_DEPRECATIONS_HELPER=999999');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b14c7f62fabeedf256d3211b0f704402b5530ba1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"src/": "%SRC_DIR%/",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"src/.bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/.bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" 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['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
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b4c7d939cac9a67e02366fa7971746e9cbf1dad0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b991063c3c9bb6efa6c6a5b827cd1e2719b5f023"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "bf16921ef8309a81d9f046e9b6369c46bcbd031f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c8f4686cd0ddf7a77d4bb89e2cf7f1df634d9ef4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ca68ad9d73ce3acf0fc4b82a8638578cc2dd021b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "cb82a2355ec62fef0e7028ac969fe86fa722feb8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"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": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>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",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" 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['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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "daae62fe8ac418b2ff8c4d56edbf1aa517aa6287"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "df78f654c4f9d516c0d1192fa898dac208b09009"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/4.8/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"KERNEL_DIR\" value=\"etc/\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "dfc954ad1d02efaf1d26ea9393226db15fe73adc"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"Run <comment>php bin/phpunit</> to launch your test suite."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.4');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e2f5bcdeb7b543a5e188d290de498b40b6eeaaa8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS=App\\\\Kernel",
|
||||
"APP_SECRET='s$cretf0rt3st'",
|
||||
"SHELL_VERBOSITY=-1",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
"SYMFONY_PHPUNIT_VERSION=6.5",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"$classLoader = require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"App\\Kernel::bootstrapEnv('test');",
|
||||
"$classLoader->unregister();",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e637a1337f5faf0b2529b1c9a47de5e8286679f0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"if (file_exists(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" require(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit');",
|
||||
"} else {",
|
||||
" if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<!-- If you use phpunit-bridge directly, set -->",
|
||||
"<!-- xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\" -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- If you use phpunit-bridge directly, you can control extra behavior -->",
|
||||
" <!--",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
|
||||
" -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f07736291c9247ad846269d336ff0489c9e45944"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"src/": "%SRC_DIR%/",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS='App\\Kernel'",
|
||||
"APP_SECRET='s$cretf0rt3st'",
|
||||
"SHELL_VERBOSITY=-1",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"src/.bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/.bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" 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['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
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f427a3ef197d370364c33123873a1e14f9b51c7f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"8.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f42c00dd9758feeafde5dfad515117753599f8f2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
".phpunit.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f59588dbcb508b1f45097a97d5066905aa6f8f41"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV']) {",
|
||||
" 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 {",
|
||||
" // load all the .env files",
|
||||
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"$_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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"bin/.phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"7.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f70987cc97d794a915e48c85a6d8ef3be8f528c1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"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.result.cache",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/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
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=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": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.5/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"config/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"6.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist>",
|
||||
" <directory>src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f86403a9d21a2e092d3aa213b1e0def6741489d1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
".phpunit",
|
||||
"/phpunit.xml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> How to test? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {",
|
||||
" echo \"Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_VERSION=6.5');",
|
||||
"}",
|
||||
"if (false === getenv('SYMFONY_PHPUNIT_DIR')) {",
|
||||
" putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <env name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" <env name=\"APP_ENV\" value=\"test\" />",
|
||||
" <env name=\"APP_DEBUG\" value=\"1\" />",
|
||||
" <env name=\"APP_SECRET\" value=\"s$cretf0rt3st\" />",
|
||||
" <env name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <!-- define your env variables for the test env here -->",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fd6e5b56573f4576359472e8b77a11d61af73518"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"phpunit.xml.dist": "phpunit.xml.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/6.1/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"vendor/autoload.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"KERNEL_CLASS\" value=\"App\\Kernel\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests/</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ffc2f14edf833f5bbc1c91889eedb20a100c16c4"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user