Esempio n. 1
0
 /**
  * Adding a route that has already been defined.
  *
  * @access public
  * @expectedException InvalidArgumentException
  */
 public function testAddingExistingRoute()
 {
     // Create router
     $router = new Core\Router();
     // Create two routes called the same
     $router->addRoute('Foo');
     $router->addRoute('Foo');
 }