public function testGetRoutesAreAlphabeticallySorted()
 {
     $routes = [$this->createRoute('b'), $this->createRoute('a'), $this->createRoute('a/c'), $this->createRoute('a/b'), $this->createRoute('a/b/c'), $this->createRoute('a/b/a')];
     $routeCollection = new FlatRouteCollection($routes);
     $returnedRoutes = $routeCollection->getRoutes();
     foreach (['a', 'a/b', 'a/b/a', 'a/b/c', 'a/c', 'b'] as $routeName) {
         $route = array_shift($returnedRoutes);
         $this->assertEquals($routeName, $route->getName());
     }
 }