diff --git a/tests/AppTest.php b/tests/AppTest.php index 2e7dfa581..6b671a7ef 100644 --- a/tests/AppTest.php +++ b/tests/AppTest.php @@ -275,6 +275,19 @@ public function testMapRoute() $this->assertAttributeContains('POST', 'methods', $route); } + public function testMapRouteWithLowercaseMethod() + { + $path = '/foo'; + $callable = function ($req, $res) { + // Do something + }; + $app = new App(); + $route = $app->map(['get'], $path, $callable); + + $this->assertInstanceOf('\Slim\Route', $route); + $this->assertAttributeContains('get', 'methods', $route); + } + public function testRedirectRoute() { $source = '/foo';