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