示例#1
0
 function testErrorDispatch()
 {
     $this->api->error = function (Request $request) {
         $request->setParam("error", true);
     };
     $this->request->mock(array("REQUEST_URI" => "/route-3"));
     $this->dispatch();
     $this->assertTrue($this->request->getParam("error"));
 }