Commit 92eac67
committed
fix: use controlled envDirectory in test bootstrap instead of silencing unreadable .env
Per review feedback, instead of silently skipping an unreadable .env in
Boot::loadDotEnv(), configure the test bootstrap to use a controlled
environment directory. This ensures separate-process tests don't fail
when .env becomes unreadable due to test pollution.
- Revert is_file/is_readable guard in Boot::loadDotEnv() (retain
production error handling for unreadable .env)
- Replace null coalescing with property_exists() for envDirectory
- Set $paths->envDirectory = $paths->testsDirectory in test bootstrap1 parent 9c62951 commit 92eac67
2 files changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 207 | | |
215 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
216 | 211 | | |
217 | 212 | | |
218 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments