public function testImage() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['image'] = $this->getMockHandler('ImageHandler', 'image'); $twig = new TwigExtension($app, $handlers, true); $twig->image(null, null, null, null); }