addControllers() public method

Add controllers
public addControllers ( array $controller ) : Router
$controller array
return Router
Example #1
0
 public function testAddAndGetControllers()
 {
     $r = new Router(array('/' => 'Some\\New\\Controller'));
     $r->addControllers(array('/other' => 'Some\\New\\OtherController'));
     $this->assertEquals(2, count($r->getControllers()));
     $r->addControllers(array('/' => array('/test' => 'Some\\New\\TestController')));
     $this->assertEquals(2, count($r->getControllers()));
 }