From 22cd70b7a6109908a429ddc10e4b09823c870228 Mon Sep 17 00:00:00 2001 From: fenric Date: Wed, 26 Dec 2018 00:47:39 +0300 Subject: [PATCH] Minor changes --- tests/RouterTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/RouterTest.php b/tests/RouterTest.php index 05017bb7..858dc133 100644 --- a/tests/RouterTest.php +++ b/tests/RouterTest.php @@ -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()