diff --git a/_tests/unit/RouterTest.php b/_tests/unit/RouterTest.php index 2464832..fe9d192 100644 --- a/_tests/unit/RouterTest.php +++ b/_tests/unit/RouterTest.php @@ -22,19 +22,19 @@ class RouterTest extends \PHPUnit\Framework\TestCase [ '{controller}/{action}', [], - 'posts/entry', + '/posts/entry', ['controller' => 'posts', 'action' => 'entry'] ], [ '{controller}/{action}/{id:\d+}', [], - 'posts/edit/3', + '/posts/edit/3', ['controller' => 'posts', 'action' => 'edit', 'id' => '3'] ], [ '{action}', ['controller' => 'home'], - 'login', + '/login', ['controller' => 'home'] ] ]; @@ -63,11 +63,7 @@ class RouterTest extends \PHPUnit\Framework\TestCase */ public function dispatchingRouteSuccess($route, $params, $url) { - // $url = 'login'; - $router = new Router(); - - // $router->add('{action}', ['controller' => 'home']); $router->add($route, $params); $this->assertTrue($router->dispatch($url));