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