public function testMapCanReceiveACallable() { $map = $this->app->map('/:controller', function ($params, $app) { }); $this->assertInstanceOf('Closure', $map->controller()); }