Skip to content

Commit

Permalink
remove error test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Jul 17, 2018
1 parent c9f2d38 commit ec07bc9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/RouteDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ec07bc9

Please sign in to comment.