From 8530d29599857648673293ee36eeae2cbb9c25a6 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 12 Sep 2023 01:12:53 +0200 Subject: [PATCH 1/3] Add Recipe for PHPUnit 10 --- phpunit/phpunit/10.0/.env.test | 4 +++ phpunit/phpunit/10.0/manifest.json | 11 ++++++++ phpunit/phpunit/10.0/phpunit.dist.xml | 34 ++++++++++++++++++++++++ phpunit/phpunit/10.0/tests/bootstrap.php | 11 ++++++++ symfony/panther/1.0/manifest.json | 14 ++++++++++ 5 files changed, 74 insertions(+) create mode 100644 phpunit/phpunit/10.0/.env.test create mode 100644 phpunit/phpunit/10.0/manifest.json create mode 100644 phpunit/phpunit/10.0/phpunit.dist.xml create mode 100644 phpunit/phpunit/10.0/tests/bootstrap.php diff --git a/phpunit/phpunit/10.0/.env.test b/phpunit/phpunit/10.0/.env.test new file mode 100644 index 000000000..24a43c03b --- /dev/null +++ b/phpunit/phpunit/10.0/.env.test @@ -0,0 +1,4 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='$ecretf0rt3st' +SYMFONY_DEPRECATIONS_HELPER=999999 diff --git a/phpunit/phpunit/10.0/manifest.json b/phpunit/phpunit/10.0/manifest.json new file mode 100644 index 000000000..a35670abb --- /dev/null +++ b/phpunit/phpunit/10.0/manifest.json @@ -0,0 +1,11 @@ +{ + "copy-from-recipe": { + ".env.test": ".env.test", + "phpunit.dist.xml": "phpunit.dist.xml", + "tests/": "tests/" + }, + "gitignore": [ + "/phpunit.xml", + "/.phpunit.cache/" + ] +} diff --git a/phpunit/phpunit/10.0/phpunit.dist.xml b/phpunit/phpunit/10.0/phpunit.dist.xml new file mode 100644 index 000000000..45aa89cf9 --- /dev/null +++ b/phpunit/phpunit/10.0/phpunit.dist.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + tests + + + + + + src + + + + + + diff --git a/phpunit/phpunit/10.0/tests/bootstrap.php b/phpunit/phpunit/10.0/tests/bootstrap.php new file mode 100644 index 000000000..469dccee4 --- /dev/null +++ b/phpunit/phpunit/10.0/tests/bootstrap.php @@ -0,0 +1,11 @@ +bootEnv(dirname(__DIR__).'/.env'); +} diff --git a/symfony/panther/1.0/manifest.json b/symfony/panther/1.0/manifest.json index 4f08f8e71..269260030 100644 --- a/symfony/panther/1.0/manifest.json +++ b/symfony/panther/1.0/manifest.json @@ -19,6 +19,20 @@ "content": " ", "position": "after_target", "target": "", + "warn_if_missing": false + }, + { + "file": "phpunit.dist.xml", + "content": " ", + "position": "after_target", + "target": "", + "warn_if_missing": false + }, + { + "file": "env.test", + "content": "PANTHER_APP_ENV=panther\nPANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots", + "position": "after_target", + "target": "SYMFONY_DEPRECATIONS_HELPER=999999", "warn_if_missing": true } ] From 7a4e09aefdab83cb681b1dccb5ae1aef7b11c487 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Mon, 6 Nov 2023 07:40:35 +0100 Subject: [PATCH 2/3] Update phpunit.dist.xml SYMFONY_PHPUNIT_VERSION to 10 --- phpunit/phpunit/10.0/phpunit.dist.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit/phpunit/10.0/phpunit.dist.xml b/phpunit/phpunit/10.0/phpunit.dist.xml index 45aa89cf9..7ca7d74a3 100644 --- a/phpunit/phpunit/10.0/phpunit.dist.xml +++ b/phpunit/phpunit/10.0/phpunit.dist.xml @@ -14,7 +14,7 @@ - + From 8a8f244c8c21919c0fb3666bbde0e3e6bda4c7f7 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Fri, 15 Dec 2023 09:10:36 +0100 Subject: [PATCH 3/3] Update symfony/panther/1.0/manifest.json Co-authored-by: ToshY <31921460+ToshY@users.noreply.github.com> --- symfony/panther/1.0/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/panther/1.0/manifest.json b/symfony/panther/1.0/manifest.json index 269260030..b7cf34038 100644 --- a/symfony/panther/1.0/manifest.json +++ b/symfony/panther/1.0/manifest.json @@ -29,7 +29,7 @@ "warn_if_missing": false }, { - "file": "env.test", + "file": ".env.test", "content": "PANTHER_APP_ENV=panther\nPANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots", "position": "after_target", "target": "SYMFONY_DEPRECATIONS_HELPER=999999",