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