diff --git a/tests/RouteDispatcherTest.php b/tests/RouteDispatcherTest.php index e1c97e5..42dd040 100644 --- a/tests/RouteDispatcherTest.php +++ b/tests/RouteDispatcherTest.php @@ -37,18 +37,6 @@ public function testAppendMiddleware() $this->assertEquals('hello world', (string)$response->getBody()); } - public function testDispatchRouteName() - { - $routeCollection = new RouteCollection(); - $routeCollection->get([ - 'name' => 'demo', - 'path' => '/', - ], [$this, 'response']); - $dispatcher = new RouteDispatcher($routeCollection); - $response = $dispatcher->dispatchRoute('demo'); - $this->assertEquals('hello world', (string)$response->getBody()); - } - public function response() { return new Response('hello world');