Skip to content

Commit 4bb3586

Browse files
committed
Adjust ExceptionsTest
1 parent f5366d4 commit 4bb3586

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/system/Debug/ExceptionsTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ final class ExceptionsTest extends CIUnitTestCase
3131

3232
private \CodeIgniter\Debug\Exceptions $exception;
3333

34+
public static function setUpBeforeClass(): void
35+
{
36+
parent::setUpBeforeClass();
37+
38+
unset($_SERVER['CODEIGNITER_SCREAM_DEPRECATIONS']);
39+
}
40+
41+
public static function tearDownAfterClass(): void
42+
{
43+
parent::tearDownAfterClass();
44+
45+
$_SERVER['CODEIGNITER_SCREAM_DEPRECATIONS'] = '1';
46+
}
47+
3448
protected function setUp(): void
3549
{
3650
parent::setUp();

0 commit comments

Comments
 (0)