We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent effc6ad commit fb71fb4Copy full SHA for fb71fb4
tests/system/Debug/ToolbarTest.php
@@ -24,8 +24,6 @@
24
use PHPUnit\Framework\Attributes\BackupGlobals;
25
use PHPUnit\Framework\Attributes\Group;
26
27
-require_once SUPPORTPATH . 'Mock/MockNativeHeaders.php';
28
-
29
/**
30
* @internal
31
*/
@@ -37,6 +35,14 @@ final class ToolbarTest extends CIUnitTestCase
37
35
private ?IncomingRequest $request = null;
38
36
private ?ResponseInterface $response = null;
39
+ public static function setUpBeforeClass(): void
+ {
40
+ parent::setUpBeforeClass();
41
+
42
+ // Load the mock once for the whole test class
43
+ require_once SUPPORTPATH . 'Mock/MockNativeHeaders.php';
44
+ }
45
46
protected function setUp(): void
47
{
48
parent::setUp();
0 commit comments