diff --git a/doctrine/deprecations/1.0/manifest.json b/doctrine/deprecations/1.0/manifest.json new file mode 100644 index 000000000..a13c92bea --- /dev/null +++ b/doctrine/deprecations/1.0/manifest.json @@ -0,0 +1,11 @@ +{ + "add-lines": [ + { + "file": "phpunit.dist.xml", + "content": " Doctrine\\Deprecations\\Deprecation::trigger\n Doctrine\\Deprecations\\Deprecation::delegateTriggerToBackend", + "position": "after_target", + "target": "", + "warn_if_missing": false + } + ] +} diff --git a/phpunit/phpunit/11.1/.env.test b/phpunit/phpunit/11.1/.env.test new file mode 100644 index 000000000..64bd11143 --- /dev/null +++ b/phpunit/phpunit/11.1/.env.test @@ -0,0 +1,3 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='$ecretf0rt3st' diff --git a/phpunit/phpunit/11.1/bin/phpunit b/phpunit/phpunit/11.1/bin/phpunit new file mode 100755 index 000000000..692baccb6 --- /dev/null +++ b/phpunit/phpunit/11.1/bin/phpunit @@ -0,0 +1,23 @@ +#!/usr/bin/env php += 80000) { + require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit'; + } else { + 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'; +} diff --git a/phpunit/phpunit/11.1/manifest.json b/phpunit/phpunit/11.1/manifest.json new file mode 100644 index 000000000..4cfad0849 --- /dev/null +++ b/phpunit/phpunit/11.1/manifest.json @@ -0,0 +1,21 @@ +{ + "add-lines": [ + { + "file": "phpunit.dist.xml", + "content": " Doctrine\\Deprecations\\Deprecation::trigger\n Doctrine\\Deprecations\\Deprecation::delegateTriggerToBackend", + "position": "after_target", + "target": "", + "requires": ["doctrine/deprecations"] + } + ], + "copy-from-recipe": { + ".env.test": ".env.test", + "phpunit.dist.xml": "phpunit.dist.xml", + "tests/": "tests/", + "bin/": "%BIN_DIR%/" + }, + "gitignore": [ + "/phpunit.xml", + "/.phpunit.cache/" + ] +} diff --git a/phpunit/phpunit/11.1/phpunit.dist.xml b/phpunit/phpunit/11.1/phpunit.dist.xml new file mode 100644 index 000000000..db201ce2d --- /dev/null +++ b/phpunit/phpunit/11.1/phpunit.dist.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + tests + + + + + + src + + + + trigger_deprecation + + + + + + diff --git a/phpunit/phpunit/11.1/post-install.txt b/phpunit/phpunit/11.1/post-install.txt new file mode 100644 index 000000000..e9da2a653 --- /dev/null +++ b/phpunit/phpunit/11.1/post-install.txt @@ -0,0 +1,3 @@ + * Write test cases in the tests/ folder + * Use MakerBundle's make:test command as a shortcut! + * Run the tests with php bin/phpunit diff --git a/phpunit/phpunit/11.1/tests/bootstrap.php b/phpunit/phpunit/11.1/tests/bootstrap.php new file mode 100644 index 000000000..47a58557d --- /dev/null +++ b/phpunit/phpunit/11.1/tests/bootstrap.php @@ -0,0 +1,13 @@ +bootEnv(dirname(__DIR__).'/.env'); +} + +if ($_SERVER['APP_DEBUG']) { + umask(0000); +} diff --git a/symfony/phpunit-bridge/7.3/manifest.json b/symfony/phpunit-bridge/7.3/manifest.json new file mode 100644 index 000000000..4766ceb94 --- /dev/null +++ b/symfony/phpunit-bridge/7.3/manifest.json @@ -0,0 +1,16 @@ +{ + "add-lines": [ + { + "file": "phpunit.dist.xml", + "content": " \n \n \n ", + "position": "after_target", + "target": "", + "warn_if_missing": true + } + ], + "conflict": { + "phpunit/phpunit": "<10.0", + "symfony/framework-bundle": "<5.4" + }, + "aliases": ["simple-phpunit"] +}