Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Dec 25, 2018
1 parent a07f0a4 commit 22cd70b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ public function testAddSeveralMiddlewares()
public function testMatchSeveralRoutes()
{
$routes = new RouteCollection();
$foo = $routes->get('foo', '/foo');
$bar = $routes->get('bar', '/bar');
$baz = $routes->get('baz', '/baz');
$qux = $routes->get('qux', '/qux');
$router = new Router($routes);
$routes->get('foo', '/foo');
$routes->get('bar', '/bar');
$routes->get('baz', '/baz');

$expected = $routes->get('qux', '/qux');
$actual = $this->discoverRoute($routes, 'GET', '/qux');

$route = $this->discoverRoute($routes, 'GET', '/qux');
$this->assertEquals($qux, $route);
$this->assertEquals($expected, $actual);
}

public function testMatchHttpMethods()
Expand Down

0 comments on commit 22cd70b

Please sign in to comment.