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