Example #1
0
 /**
  * @test
  * @expectedException \RunTimeException
  */
 public function testRouteException()
 {
     $router = new Router();
     $routeMock = $this->getMockBuilder('Wrr\\RouteInterface')->getMock();
     $routeMock->expects($this->any())->method('match')->withAnyParameters()->will($this->returnValue(false));
     $router->registerRoute($routeMock);
     $router->setUriBase('abc');
     $request = $this->getMock('Wrr\\Request');
     $router = $router->setRequest($request);
     $router->route();
 }