Commit 74e9168
committed
fix: prevent EventListenersTest setup/teardown errors in CI
Added setUp() check for REDIS_AVAILABLE environment variable to skip
entire test class before Laravel's HandleExceptions tries to flush state.
This prevents the TypeError:
PHPUnit\Runner\ErrorHandler::enable(): Argument #1 must be of type
PHPUnit\Framework\TestCase, null given
The error occurred in prefer-lowest CI runs where Laravel's error handler
state management conflicted with PHPUnit's TestCase initialization.
Now the test class is skipped entirely in non-Redis environments,
preventing any setup/teardown code from running.1 parent 44c290a commit 74e9168
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
21 | 31 | | |
22 | 32 | | |
23 | 33 | | |
| |||
0 commit comments