Skip to content

Commit 1f4ba30

Browse files
committed
test: refactor: reset $_SERVER
1 parent d8b750b commit 1f4ba30

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/system/Filters/FiltersTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,19 @@ protected function setUp(): void
5050

5151
Services::autoloader()->addNamespace($defaults);
5252

53+
$_SERVER = [];
54+
5355
$this->response = Services::response();
5456
}
5557

5658
public function testProcessMethodDetectsCLI()
5759
{
60+
$_SERVER['argv'] = [
61+
'spark',
62+
'list',
63+
];
64+
$_SERVER['argc'] = 2;
65+
5866
$config = [
5967
'aliases' => ['foo' => ''],
6068
'methods' => [

0 commit comments

Comments
 (0)