X-Git-Url: https://git.rapsys.eu/airlibre/blobdiff_plain/319e429eba8ee892a94d6053d6f60962cfde2e84..21a80c7a3237585e664a707b72d10f1a9ca3b477:/tests/bootstrap.php?ds=inline diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 469dcce..07fb785 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,8 +4,10 @@ use Symfony\Component\Dotenv\Dotenv; require dirname(__DIR__).'/vendor/autoload.php'; -if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) { - require dirname(__DIR__).'/config/bootstrap.php'; -} elseif (method_exists(Dotenv::class, 'bootEnv')) { +if (method_exists(Dotenv::class, 'bootEnv')) { (new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); } + +if ($_SERVER['APP_DEBUG']) { + umask(0002); +}