protected function setUp() { $this->app = new Application(); $this->app->register(new TwigServiceProvider()); $twigExtensions = new TwigExtensions(); $twigExtensions->registerTwigExtensions($this->app); }