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