- HTTP Methods other than POST are coerced into GET in App\Router constructor
$router->getModuleClass('/test');
}
-
- public function testGetPostModuleClassMethodNotAllowed()
- {
- $this->expectException(MethodNotAllowedException::class);
-
- $router = new Router(['REQUEST_METHOD' => 'PUT']);
-
- $routeCollector = $router->getRouteCollector();
- $routeCollector->addRoute([Router::GET, Router::POST], '/test', 'TestModuleClassName');
-
- $router->getModuleClass('/test');
- }
public function dataRoutes()
{