Inheritance: extends Illuminate\Routing\Router
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->app['router'] = $this->app->share(function ($app) {
         $router = new Router($app);
         // If the current application environment is "testing", we will disable the
         // routing filters, since they can be tested independently of the routes
         // and just get in the way of our typical controller testing concerns.
         if ($app['env'] == 'testing') {
             $router->disableFilters();
         }
         return $router;
     });
 }
 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);
 }