From 95c7cfd45d7749d0577dd13cfcba54214218829a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 26 Nov 2026 19:01:29 +0100 Subject: [PATCH] Recipe phpunit/phpunit update --- .env.test | 3 +++ .gitignore | 2 +- bin/phpunit | 4 ++++ phpunit.dist.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ tests/bootstrap.php | 13 +++++++++++++ 5 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .env.test create mode 100644 bin/phpunit create mode 100644 phpunit.dist.xml create mode 100644 tests/bootstrap.php diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..64bd111 --- /dev/null +++ b/.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/.gitignore b/.gitignore index 08a13c3..4828442 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ ###< symfony/framework-bundle ### ###> phpunit/phpunit ### /phpunit.xml -.phpunit.result.cache +/.phpunit.cache/ ###< phpunit/phpunit ### ###> rapsys/airbundle ### diff --git a/bin/phpunit b/bin/phpunit new file mode 100644 index 0000000..ac5eef1 --- /dev/null +++ b/bin/phpunit @@ -0,0 +1,4 @@ +#!/usr/bin/env php + + + + + + + + + + + + + + tests + + + + + + src + + + + Doctrine\Deprecations\Deprecation::trigger + Doctrine\Deprecations\Deprecation::delegateTriggerToBackend + trigger_deprecation + + + + + + diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..43ba851 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,13 @@ +bootEnv(dirname(__DIR__).'/.env'); +} + +if ($_SERVER['APP_DEBUG']) { + umask(0022); +} -- 2.52.0