|
@@ 38-47 (lines=10) @@
|
| 35 |
|
$this->inflect($route)->shouldBeAnInstanceOf(ControllerDispatch::class); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
function it_converts_dashed_url_controller_param_into_controller_class_names() |
| 39 |
|
{ |
| 40 |
|
$route = new Route(); |
| 41 |
|
$route->attributes([ |
| 42 |
|
'namespace' => 'Controller', |
| 43 |
|
'controller' => 'yellow-pages', |
| 44 |
|
'action' => 'index' |
| 45 |
|
]); |
| 46 |
|
$this->inflect($route)->shouldHaveControllerNamed('Controller\YellowPages'); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
function it_converts_underscored_url_controller_param_into_controller_class_names() |
| 50 |
|
{ |
|
@@ 49-58 (lines=10) @@
|
| 46 |
|
$this->inflect($route)->shouldHaveControllerNamed('Controller\YellowPages'); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
function it_converts_underscored_url_controller_param_into_controller_class_names() |
| 50 |
|
{ |
| 51 |
|
$route = new Route(); |
| 52 |
|
$route->attributes([ |
| 53 |
|
'namespace' => 'Controller', |
| 54 |
|
'controller' => 'yellow_pages', |
| 55 |
|
'action' => 'index' |
| 56 |
|
]); |
| 57 |
|
$this->inflect($route)->shouldHaveControllerNamed('Controller\YellowPages'); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
public function getMatchers() |