any() public static method

public static any ( $uri, $action, array $options = [] )
$options array
Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldAddDeleteRoute()
 {
     //given
     GroupedRoute::any('/user/delete/:id', 'User#delete');
     //when
     $routes = Route::getRoutes();
     //then
     Assert::thatArray($routes)->onMethod('getUri')->containsOnly('/api/user/delete/:id');
 }