]> Raphaël G. Git Repositories - blog/commitdiff
Add bootstrap test
authorRaphaël Gertz <git@rapsys.eu>
Sun, 28 Jan 2024 04:30:00 +0000 (05:30 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 28 Jan 2024 04:30:00 +0000 (05:30 +0100)
tests/bootstrap.php [new file with mode: 0644]

diff --git a/tests/bootstrap.php b/tests/bootstrap.php
new file mode 100644 (file)
index 0000000..43ba851
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+use Symfony\Component\Dotenv\Dotenv;
+
+require dirname(__DIR__).'/vendor/autoload.php';
+
+if (method_exists(Dotenv::class, 'bootEnv')) {
+    (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
+}
+
+if ($_SERVER['APP_DEBUG']) {
+    umask(0022);
+}