function testGetRoutes() { $router = new \AuraTempleFramework\Router('hello/world'); $router->registerRoute('hello', 'HelloRoute'); $router->registerRoute('world', 'WorldRoute'); $routes = $router->getRoutes(); $routes_arr = ['hello' => ['route' => 'hello', 'segments' => ['hello'], 'callback' => 'HelloRoute', 'group' => 'default'], 'world' => ['route' => 'world', 'segments' => ['world'], 'callback' => 'WorldRoute', 'group' => 'default']]; $this->assertEquals($routes_arr, $routes); $this->assertEquals(count($routes_arr), count($routes)); }