mirror of
https://github.com/symfony/recipes.git
synced 2026-09-16 17:46:27 +03:00
104 lines
4.9 KiB
JSON
104 lines
4.9 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|