public function configure(App $app) { $router = $app->router(); $router->get('/', function ($req, $res) { $res->write('foo'); }); return $router; }
public function testRouter() { $router = $this->app->router(); $this->assertInstanceOf(Router::class, $router); $this->assertNotSame($router, $this->app->router()); }