Skip to content
Permalink
Browse files

BUG Remove reference to $_SERVER within FakeController

  • Loading branch information
Damian Mooyman
Damian Mooyman committed Feb 27, 2017
1 parent 6951945 commit ff47bc03d74a6b3a483467ac47163add13f55c02
Showing with 1 addition and 6 deletions.
  1. +1 −6 tests/php/Control/FakeController.php
@@ -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());

0 comments on commit ff47bc0

Please sign in to comment.
You can’t perform that action at this time.