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