Skip to content

Commit 11cbd20

Browse files
committed
don't clear the whole server context to not confuse phpunit time debugs
1 parent 22d0363 commit 11cbd20

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/helpers/RequestParserTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ public function testFromSuperglobals_WithPhpInputStream() {
9191
}
9292

9393
public function testFromSuperglobals_WithoutServerContext() {
94-
$_SERVER = [];
94+
unset($_SERVER['REQUEST_SCHEME']);
95+
unset($_SERVER['HTTP_HOST']);
96+
unset($_SERVER['REQUEST_URI']);
97+
unset($_SERVER['CONTENT_TYPE']);
98+
9599
$_GET = [];
96100
$_POST = [];
97101

0 commit comments

Comments
 (0)