mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
81 lines
3.5 KiB
JSON
81 lines
3.5 KiB
JSON
{
|
|
"manifests": {
|
|
"phpunit/phpunit": {
|
|
"manifest": {
|
|
"copy-from-recipe": {
|
|
".env.test": ".env.test",
|
|
"phpunit.xml.dist": "phpunit.xml.dist",
|
|
"tests/": "tests/"
|
|
},
|
|
"gitignore": [
|
|
"/phpunit.xml"
|
|
],
|
|
"post-install-output": [
|
|
"<bg=yellow;fg=black> </>",
|
|
"<bg=yellow;fg=black> Adding phpunit/phpunit as a dependency is discouraged in favor of Symfony's PHPUnit Bridge. </>",
|
|
"<bg=yellow;fg=black> </>",
|
|
"",
|
|
" * <fg=blue>Instead</>:",
|
|
" 1. Remove it now: <comment>composer remove --dev phpunit/phpunit</>",
|
|
" 2. Use Symfony's bridge: <comment>composer require --dev 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",
|
|
""
|
|
],
|
|
"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=\"tests/bootstrap.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>",
|
|
"</phpunit>",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/bootstrap.php": {
|
|
"contents": [
|
|
"<?php",
|
|
"",
|
|
"require dirname(__DIR__).'/vendor/autoload.php';",
|
|
"",
|
|
"App\\Kernel::bootstrapEnv('test');",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "e55422d7ee468d33aa0c5ffc550eccddc1410848"
|
|
}
|
|
}
|
|
}
|