Example #1
0
 public function setUp()
 {
     $this->requestMock = $this->getMock(\Magelight\Http\Request::class, [], [], '', false);
     \Magelight\Http\Request::forgeMock($this->requestMock);
     $this->responseMock = $this->getMock(\Magelight\Http\Response::class, [], [], '', false);
     \Magelight\Http\Response::forgeMock($this->responseMock);
     $this->appMock = $this->getMock(\Magelight\App::class, [], [], '', false);
     \Magelight\App::forgeMock($this->appMock);
     $this->serverMock = $this->getMock(\Magelight\Http\Server::class, [], [], '', false);
     \Magelight\Http\Server::forgeMock($this->serverMock);
     $this->controller = \Magelight\Controller::forge();
 }