function testFunctionMapping() { $this->app->map('map2', function () { return 'hello'; }); $result = $this->app->map2(); $this->assertEquals('hello', $result); }