public function popup($filename = null, $width = null, $height = null, $crop = null, $title = null) { return $this->handlers['image']->popup($filename, $width, $height, $crop, $title); }
public function testPopup() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['image'] = $this->getMockHandler('ImageHandler', 'popup'); $twig = new TwigExtension($app, $handlers, true); $twig->popup(null, null, null, null, null); }