Skip to content

Commit b8f4bf3

Browse files
committed
test: fix setUp()
1 parent b220d60 commit b8f4bf3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/system/HTTP/ResponseTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ final class ResponseTest extends CIUnitTestCase
3030

3131
protected function setUp(): void
3232
{
33-
parent::setUp();
3433
$this->server = $_SERVER;
34+
35+
Services::reset();
36+
37+
parent::setUp();
3538
}
3639

3740
protected function tearDown(): void
3841
{
39-
$_SERVER = $this->server;
4042
Factories::reset('config');
43+
44+
$_SERVER = $this->server;
4145
}
4246

4347
public function testCanSetStatusCode()

0 commit comments

Comments
 (0)