public function testTrans() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['admin'] = $this->getMockHandler('AdminHandler', 'trans'); $twig = new TwigExtension($app, $handlers, true); $twig->trans(null, null); }