Files
symfony-flex-recipes/symfony.phpunit-bridge.3.3.json
T
github-action botandgithub-action bot d66972e1ac Update Flex endpoint
2021-09-23 15:02:48 +00:00

117 lines
5.3 KiB
JSON

{
"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');",
"}",
""
],
"executable": false
}
},
"ref": "f59588dbcb508b1f45097a97d5066905aa6f8f41"
}
}
}