From 05995d373497fe263b3fa87f35526cbd6dc73218 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 23 Jun 2023 15:22:27 +0200 Subject: [PATCH] Comment tag before PHPUnit 9.6 (#1219) --- phpunit/phpunit/4.7/phpunit.xml.dist | 2 + phpunit/phpunit/9.3/phpunit.xml.dist | 2 + phpunit/phpunit/9.6/.env.test | 6 +++ phpunit/phpunit/9.6/manifest.json | 11 ++++++ phpunit/phpunit/9.6/phpunit.xml.dist | 38 +++++++++++++++++++ phpunit/phpunit/9.6/tests/bootstrap.php | 11 ++++++ symfony/phpunit-bridge/5.1/phpunit.xml.dist | 2 + symfony/phpunit-bridge/5.3/phpunit.xml.dist | 2 + symfony/phpunit-bridge/6.3/.env.test | 6 +++ symfony/phpunit-bridge/6.3/bin/phpunit | 19 ++++++++++ symfony/phpunit-bridge/6.3/manifest.json | 16 ++++++++ symfony/phpunit-bridge/6.3/phpunit.xml.dist | 38 +++++++++++++++++++ symfony/phpunit-bridge/6.3/post-install.txt | 3 ++ .../phpunit-bridge/6.3/tests/bootstrap.php | 15 ++++++++ 14 files changed, 171 insertions(+) create mode 100644 phpunit/phpunit/9.6/.env.test create mode 100644 phpunit/phpunit/9.6/manifest.json create mode 100644 phpunit/phpunit/9.6/phpunit.xml.dist create mode 100644 phpunit/phpunit/9.6/tests/bootstrap.php create mode 100644 symfony/phpunit-bridge/6.3/.env.test create mode 100755 symfony/phpunit-bridge/6.3/bin/phpunit create mode 100644 symfony/phpunit-bridge/6.3/manifest.json create mode 100644 symfony/phpunit-bridge/6.3/phpunit.xml.dist create mode 100644 symfony/phpunit-bridge/6.3/post-install.txt create mode 100644 symfony/phpunit-bridge/6.3/tests/bootstrap.php diff --git a/phpunit/phpunit/4.7/phpunit.xml.dist b/phpunit/phpunit/4.7/phpunit.xml.dist index 195c8eea..db2b29d5 100644 --- a/phpunit/phpunit/4.7/phpunit.xml.dist +++ b/phpunit/phpunit/4.7/phpunit.xml.dist @@ -30,6 +30,8 @@ + diff --git a/phpunit/phpunit/9.3/phpunit.xml.dist b/phpunit/phpunit/9.3/phpunit.xml.dist index 6c4bfed7..23ea5cfa 100644 --- a/phpunit/phpunit/9.3/phpunit.xml.dist +++ b/phpunit/phpunit/9.3/phpunit.xml.dist @@ -33,6 +33,8 @@ + diff --git a/phpunit/phpunit/9.6/.env.test b/phpunit/phpunit/9.6/.env.test new file mode 100644 index 00000000..9e7162f0 --- /dev/null +++ b/phpunit/phpunit/9.6/.env.test @@ -0,0 +1,6 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='$ecretf0rt3st' +SYMFONY_DEPRECATIONS_HELPER=999999 +PANTHER_APP_ENV=panther +PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots diff --git a/phpunit/phpunit/9.6/manifest.json b/phpunit/phpunit/9.6/manifest.json new file mode 100644 index 00000000..8af7b3b3 --- /dev/null +++ b/phpunit/phpunit/9.6/manifest.json @@ -0,0 +1,11 @@ +{ + "copy-from-recipe": { + ".env.test": ".env.test", + "phpunit.xml.dist": "phpunit.xml.dist", + "tests/": "tests/" + }, + "gitignore": [ + "/phpunit.xml", + ".phpunit.result.cache" + ] +} diff --git a/phpunit/phpunit/9.6/phpunit.xml.dist b/phpunit/phpunit/9.6/phpunit.xml.dist new file mode 100644 index 00000000..6c4bfed7 --- /dev/null +++ b/phpunit/phpunit/9.6/phpunit.xml.dist @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + tests + + + + + + src + + + + + + + + + + diff --git a/phpunit/phpunit/9.6/tests/bootstrap.php b/phpunit/phpunit/9.6/tests/bootstrap.php new file mode 100644 index 00000000..469dccee --- /dev/null +++ b/phpunit/phpunit/9.6/tests/bootstrap.php @@ -0,0 +1,11 @@ +bootEnv(dirname(__DIR__).'/.env'); +} diff --git a/symfony/phpunit-bridge/5.1/phpunit.xml.dist b/symfony/phpunit-bridge/5.1/phpunit.xml.dist index 60c31a07..40593c65 100644 --- a/symfony/phpunit-bridge/5.1/phpunit.xml.dist +++ b/symfony/phpunit-bridge/5.1/phpunit.xml.dist @@ -31,6 +31,8 @@ + diff --git a/symfony/phpunit-bridge/5.3/phpunit.xml.dist b/symfony/phpunit-bridge/5.3/phpunit.xml.dist index 6c4bfed7..23ea5cfa 100644 --- a/symfony/phpunit-bridge/5.3/phpunit.xml.dist +++ b/symfony/phpunit-bridge/5.3/phpunit.xml.dist @@ -33,6 +33,8 @@ + diff --git a/symfony/phpunit-bridge/6.3/.env.test b/symfony/phpunit-bridge/6.3/.env.test new file mode 100644 index 00000000..9e7162f0 --- /dev/null +++ b/symfony/phpunit-bridge/6.3/.env.test @@ -0,0 +1,6 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='$ecretf0rt3st' +SYMFONY_DEPRECATIONS_HELPER=999999 +PANTHER_APP_ENV=panther +PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots diff --git a/symfony/phpunit-bridge/6.3/bin/phpunit b/symfony/phpunit-bridge/6.3/bin/phpunit new file mode 100755 index 00000000..f26f2c72 --- /dev/null +++ b/symfony/phpunit-bridge/6.3/bin/phpunit @@ -0,0 +1,19 @@ +#!/usr/bin/env php + + + + + + + + + + + + + + + + tests + + + + + + src + + + + + + + + + + diff --git a/symfony/phpunit-bridge/6.3/post-install.txt b/symfony/phpunit-bridge/6.3/post-install.txt new file mode 100644 index 00000000..e9da2a65 --- /dev/null +++ b/symfony/phpunit-bridge/6.3/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/symfony/phpunit-bridge/6.3/tests/bootstrap.php b/symfony/phpunit-bridge/6.3/tests/bootstrap.php new file mode 100644 index 00000000..3181151d --- /dev/null +++ b/symfony/phpunit-bridge/6.3/tests/bootstrap.php @@ -0,0 +1,15 @@ +bootEnv(dirname(__DIR__).'/.env'); +} + +if ($_SERVER['APP_DEBUG']) { + umask(0000); +}