Skip to content

Commit

Permalink
test: fix setUp()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Dec 2, 2021
1 parent b220d60 commit b8f4bf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/system/HTTP/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ final class ResponseTest extends CIUnitTestCase

protected function setUp(): void
{
parent::setUp();
$this->server = $_SERVER;

Services::reset();

parent::setUp();
}

protected function tearDown(): void
{
$_SERVER = $this->server;
Factories::reset('config');

$_SERVER = $this->server;
}

public function testCanSetStatusCode()
Expand Down

0 comments on commit b8f4bf3

Please sign in to comment.