getRoutesForController() public static méthode

public static getRoutesForController ( $controller )
Exemple #1
0
 private function controller()
 {
     $controller = $this->_input->getOption('controller');
     $this->_renderRoutes(Route::getRoutesForController($controller));
 }
Exemple #2
0
 /**
  * @test
  */
 public function shouldReturnEmptyArrayIfNoRoutesForController()
 {
     //given
     Route::any('/user/save', 'User#save');
     Route::any('/user/update/id/:id', 'User#update');
     //when
     $controllerRoutes = Route::getRoutesForController('photo');
     //then
     $this->assertEmpty($controllerRoutes);
 }