Skip to content

Commit

Permalink
BUG Remove reference to $_SERVER within FakeController
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman committed Feb 27, 2017
1 parent bfc0e6f commit a810461
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/php/Control/FakeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ public function __construct()

$this->pushCurrent();

$request = new HTTPRequest(
(isset($_SERVER['X-HTTP-Method-Override']))
? $_SERVER['X-HTTP-Method-Override']
: $_SERVER['REQUEST_METHOD'],
'/'
);
$request = new HTTPRequest('GET', '/');
$this->setRequest($request);

$this->setResponse(new HTTPResponse());
Expand Down

0 comments on commit a810461

Please sign in to comment.