public function isMobileClient()
{
return $this->handlers['html']->isMobileClient();
}
public function testIsMobileClient() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['html'] = $this->getMockHandler('HtmlHandler', 'isMobileClient'); $twig = new TwigExtension($app, $handlers, true); $twig->isMobileClient(null); }