Files
symfony-flex-recipes/phpunit.phpunit.10.0.json
github-action[bot]andgithub-action[bot] e86fda7663 Update Flex endpoint
2025-04-14 09:49:45 +00:00

90 lines
3.9 KiB
JSON

{
"manifests": {
"phpunit/phpunit": {
"manifest": {
"copy-from-recipe": {
".env.test": ".env.test",
"phpunit.dist.xml": "phpunit.dist.xml",
"tests/": "tests/"
},
"gitignore": [
"/phpunit.xml",
"/.phpunit.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",
""
],
"executable": false
},
"phpunit.dist.xml": {
"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\"",
" failOnNotice=\"true\"",
" failOnWarning=\"true\"",
" bootstrap=\"tests/bootstrap.php\"",
" cacheDirectory=\".phpunit.cache\"",
">",
" <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>",
"",
" <source ignoreSuppressionOfDeprecations=\"true\" restrictNotices=\"true\" restrictWarnings=\"true\">",
" <include>",
" <directory>src</directory>",
" </include>",
" </source>",
"",
" <extensions>",
" </extensions>",
"</phpunit>",
""
],
"executable": false
},
"tests/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (method_exists(Dotenv::class, 'bootEnv')) {",
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
"}",
"",
"if ($_SERVER['APP_DEBUG']) {",
" umask(0000);",
"}",
""
],
"executable": false
}
},
"ref": "bb22cf8d8c554a623b427d5f3416b538f5525233"
}
}
}