public function testRouteMatchWithBaseUrl()
{
$foo = $this->app->get('/foo', function ($app) {
$app->response()->setContent('Foo bar!');
});
$request = $this->app->request();
$request->setMethod('GET')->setBaseUrl('/bar/baz')->setUri('/bar/baz/foo');
$this->app->run();
$response = $this->app->response();
$this->assertEquals('Foo bar!', $response->sentContent);
}