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