mirror of
https://github.com/symfony/recipes.git
synced 2026-09-18 18:46:40 +03:00
Update Flex endpoint
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [nyholm/psr7](https://packagist.org/packages/nyholm/psr7) | [1.0](nyholm/psr7/1.0) | |
|
||||
| [php-cs-fixer/shim](https://packagist.org/packages/php-cs-fixer/shim) | [3.0](php-cs-fixer/shim/3.0) | `cs-fixer-shim`, `csfixershim`, `php-cs-fixer-shim`, `phpcsfixershim` |
|
||||
| [php-http/discovery](https://packagist.org/packages/php-http/discovery) | [1.18](php-http/discovery/1.18) | |
|
||||
| [phpunit/phpunit](https://packagist.org/packages/phpunit/phpunit) | [9.3](phpunit/phpunit/9.3) | |
|
||||
| [phpunit/phpunit](https://packagist.org/packages/phpunit/phpunit) | [9.6](phpunit/phpunit/9.6) | |
|
||||
| [scheb/2fa-bundle](https://packagist.org/packages/scheb/2fa-bundle) | [6.0](scheb/2fa-bundle/6.0) | `2fa` |
|
||||
| [sensio/framework-extra-bundle](https://packagist.org/packages/sensio/framework-extra-bundle) | [5.2](sensio/framework-extra-bundle/5.2) | `annot`, `annotation`, `annotations`, `annots` |
|
||||
| [sensiolabs/ansi-to-html](https://packagist.org/packages/sensiolabs/ansi-to-html) | [1.2](sensiolabs/ansi-to-html/1.2) | |
|
||||
@@ -96,7 +96,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/ovh-cloud-notifier](https://packagist.org/packages/symfony/ovh-cloud-notifier) | [5.1](symfony/ovh-cloud-notifier/5.1) | `ovh-cloud-notifier`, `ovhcloudnotifier` |
|
||||
| [symfony/pager-duty-notifier](https://packagist.org/packages/symfony/pager-duty-notifier) | [6.3](symfony/pager-duty-notifier/6.3) | `pager-duty-notifier`, `pagerdutynotifier` |
|
||||
| [symfony/panther](https://packagist.org/packages/symfony/panther) | [1.0](symfony/panther/1.0) | `panther` |
|
||||
| [symfony/phpunit-bridge](https://packagist.org/packages/symfony/phpunit-bridge) | [5.3](symfony/phpunit-bridge/5.3) | `phpunit-bridge`, `phpunitbridge`, `simple-phpunit`, `simplephpunit` |
|
||||
| [symfony/phpunit-bridge](https://packagist.org/packages/symfony/phpunit-bridge) | [6.3](symfony/phpunit-bridge/6.3) | `phpunit-bridge`, `phpunitbridge`, `simple-phpunit`, `simplephpunit` |
|
||||
| [symfony/plivo-notifier](https://packagist.org/packages/symfony/plivo-notifier) | [6.3](symfony/plivo-notifier/6.3) | `plivo-notifier`, `plivonotifier` |
|
||||
| [symfony/postmark-mailer](https://packagist.org/packages/symfony/postmark-mailer) | [4.4](symfony/postmark-mailer/4.4) | `postmark-mailer`, `postmarkmailer` |
|
||||
| [symfony/psr7-pack](https://packagist.org/packages/symfony/psr7-pack) | [1.0](symfony/psr7-pack/1.0) | `psr-7`, `psr-17`, `psr7`, `psr17` |
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
".phpunit.result.cache"
|
||||
]
|
||||
},
|
||||
"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
|
||||
},
|
||||
"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=\"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 processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </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": "db276258424d15e572d35a4eb834b8f815662b25"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
".phpunit.result.cache"
|
||||
]
|
||||
},
|
||||
"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
|
||||
},
|
||||
"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>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </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": "fc344d3f99d9a518245ef3c88176d0c3467ae1a6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
],
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<9.6"
|
||||
},
|
||||
"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>",
|
||||
"",
|
||||
" <extensions>",
|
||||
" </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": "01dfaa98c58f7a7b5a9b30e6edb7074af7ed9819"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"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>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </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": "2f91477d6efaed3fb857db87480f7d07d31cbb3e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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": [
|
||||
" * <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>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </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": "6df817da0ca2b8cddbb6e690051d7f2b45530d06"
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
-2
@@ -526,7 +526,8 @@
|
||||
],
|
||||
"phpunit/phpunit": [
|
||||
"4.7",
|
||||
"9.3"
|
||||
"9.3",
|
||||
"9.6"
|
||||
],
|
||||
"scheb/2fa-bundle": [
|
||||
"5.0",
|
||||
@@ -775,7 +776,8 @@
|
||||
"4.1",
|
||||
"4.3",
|
||||
"5.1",
|
||||
"5.3"
|
||||
"5.3",
|
||||
"6.3"
|
||||
],
|
||||
"symfony/plivo-notifier": [
|
||||
"6.3"
|
||||
@@ -1066,6 +1068,11 @@
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"symfony/phpunit-bridge": {
|
||||
"6.3": {
|
||||
"phpunit/phpunit": "<9.6"
|
||||
}
|
||||
},
|
||||
"symfony/routing": {
|
||||
"5.3": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
|
||||
@@ -59,8 +59,10 @@
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
@@ -84,7 +86,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "eb4b14aaa06c438b7022c2b19016f5c751f800dc"
|
||||
"ref": "db276258424d15e572d35a4eb834b8f815662b25"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +62,10 @@
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
@@ -87,7 +89,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
|
||||
"ref": "fc344d3f99d9a518245ef3c88176d0c3467ae1a6"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
".phpunit.result.cache"
|
||||
]
|
||||
},
|
||||
"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
|
||||
},
|
||||
"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>",
|
||||
"",
|
||||
" <extensions>",
|
||||
" </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": "7364a21d87e658eb363c5020c072ecfdc12e2326"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,8 +85,10 @@
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
@@ -114,7 +116,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "197122f13eefe2736858d928fba95f26bcbc4dcd"
|
||||
"ref": "2f91477d6efaed3fb857db87480f7d07d31cbb3e"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,8 +93,10 @@
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Uncomment when adding extensions",
|
||||
" <extensions>",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
@@ -122,7 +124,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1552413ad842623d23a33b3ed295e03eaaf0a332"
|
||||
"ref": "6df817da0ca2b8cddbb6e690051d7f2b45530d06"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
],
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<9.6"
|
||||
},
|
||||
"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>",
|
||||
"",
|
||||
" <extensions>",
|
||||
" </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": "01dfaa98c58f7a7b5a9b30e6edb7074af7ed9819"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user