public function testOrderOfRoutesIsMaintainted() { $router = new Router(); $router->group(array('prefix' => 'foo'), function () use($router) { $router->get('bar', function () { }); }); $router->get('baz', function () { }); $routes = array_keys($router->getRoutes()->all()); $this->assertEquals(array('get foo/bar', 'get baz'), $routes); }