|
@@ 50-59 (lines=10) @@
|
| 47 |
|
]); |
| 48 |
|
$this->inflect($route)->shouldBeAnInstanceOf(ControllerDispatch::class); |
| 49 |
|
} |
| 50 |
|
function it_converts_dashed_url_controller_param_into_controller_class_names() |
| 51 |
|
{ |
| 52 |
|
$route = new Route(); |
| 53 |
|
$route->attributes([ |
| 54 |
|
'namespace' => 'spec\Slick\WebStack\Dispatcher', |
| 55 |
|
'controller' => 'yellow-pages', |
| 56 |
|
'action' => 'index' |
| 57 |
|
]); |
| 58 |
|
$this->inflect($route)->shouldHaveControllerNamed('spec\Slick\WebStack\Dispatcher\YellowPages'); |
| 59 |
|
} |
| 60 |
|
function it_converts_underscored_url_controller_param_into_controller_class_names() |
| 61 |
|
{ |
| 62 |
|
$route = new Route(); |
|
@@ 60-69 (lines=10) @@
|
| 57 |
|
]); |
| 58 |
|
$this->inflect($route)->shouldHaveControllerNamed('spec\Slick\WebStack\Dispatcher\YellowPages'); |
| 59 |
|
} |
| 60 |
|
function it_converts_underscored_url_controller_param_into_controller_class_names() |
| 61 |
|
{ |
| 62 |
|
$route = new Route(); |
| 63 |
|
$route->attributes([ |
| 64 |
|
'namespace' => 'spec\Slick\WebStack\Dispatcher', |
| 65 |
|
'controller' => 'yellow_pages', |
| 66 |
|
'action' => 'index' |
| 67 |
|
]); |
| 68 |
|
$this->inflect($route)->shouldHaveControllerNamed('spec\Slick\WebStack\Dispatcher\YellowPages'); |
| 69 |
|
} |
| 70 |
|
public function getMatchers() |
| 71 |
|
{ |
| 72 |
|
return [ |