From: Raphaƫl Gertz Date: Thu, 26 Nov 2026 18:01:29 +0000 (+0100) Subject: Recipe phpunit/phpunit update X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airlibre/commitdiff_plain/refs/heads/master Recipe phpunit/phpunit update --- 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); +}