private function resetRouter() { $this->router = $this->getMockForAbstractClass('Hyperframework\\Web\\Router', [new \stdclass()], '', false); Request::setEngine(null); //tmp fix }
private function mockEngineMethod($method) { $engine = $this->getMock('Hyperframework\\Web\\RequestEngine'); Request::setEngine($engine); return $engine->expects($this->once())->method($method); }