Rapsys Git
/
airlibre
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
abdc3cd
)
Update test bootstrap file
author
Raphaël Gertz
<git@rapsys.eu>
Tue, 27 Feb 2024 10:50:48 +0000
(11:50 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Tue, 27 Feb 2024 10:50:48 +0000
(11:50 +0100)
tests/bootstrap.php
patch
|
blob
|
history
diff --git
a/tests/bootstrap.php
b/tests/bootstrap.php
index 469dccee4982042825028fba1325cb7b50a325e9..07fb7853d183efebad68a37a1ca0dc96775358be 100644
(file)
--- a/
tests/bootstrap.php
+++ b/
tests/bootstrap.php
@@
-4,8
+4,10
@@
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__).'/vendor/autoload.php';
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');
}
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}
+
+if ($_SERVER['APP_DEBUG']) {
+ umask(0002);
+}