Rapsys Git
/
blog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8bcb5a
)
Add bootstrap test
author
Raphaël Gertz
<git@rapsys.eu>
Sun, 28 Jan 2024 04:30:00 +0000
(
05:30
+0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Sun, 28 Jan 2024 04:30:00 +0000
(
05:30
+0100)
tests/bootstrap.php
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/bootstrap.php
b/tests/bootstrap.php
new file mode 100644
(file)
index 0000000..
43ba851
--- /dev/null
+++ b/
tests/bootstrap.php
@@ -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);
+}