mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
@@ -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": [
|
||||
" * <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');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "170ab6f9abd4e1dab87462847116659ae138c34e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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": [
|
||||
" * <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');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "61aeb00b7a32aad839fe73273c8f28d2dcb3a0a9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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": [
|
||||
" * <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');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "819d3d2ffa4590eba0b8f4f3e5e89415ee4e45c3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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": [
|
||||
" * <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');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a079d407e71a1db6403d5274798119771c367891"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
""
|
||||
],
|
||||
"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');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c7c88767e034f656bdb78407d5b0407e2f12f92b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,12 +105,16 @@
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f59588dbcb508b1f45097a97d5066905aa6f8f41"
|
||||
"ref": "c7c88767e034f656bdb78407d5b0407e2f12f92b"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,12 +102,16 @@
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2ba17ea3190d76e6e37a52378f6bca3d84891bc5"
|
||||
"ref": "61aeb00b7a32aad839fe73273c8f28d2dcb3a0a9"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,12 +103,16 @@
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0e1b186400de9d4ab83363138b4eb0072c99b2ab"
|
||||
"ref": "170ab6f9abd4e1dab87462847116659ae138c34e"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,12 +109,16 @@
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f42c00dd9758feeafde5dfad515117753599f8f2"
|
||||
"ref": "a079d407e71a1db6403d5274798119771c367891"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,12 +117,16 @@
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "97cb3dc7b0f39c7cfc4b7553504c9d7b7795de96"
|
||||
"ref": "819d3d2ffa4590eba0b8f4f3e5e89415ee4e45c3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user