public function image($filename = null, $width = null, $height = null, $crop = null)
{
return $this->handlers['image']->image($filename, $width, $height, $crop);
}
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); }