public function testTrim() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['record'] = $this->getMockHandler('RecordHandler', 'excerpt'); $twig = new TwigExtension($app, $handlers, true); $twig->trim(null, null); }
public function testTrim() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $twig = new TwigExtension($app, $handlers, false); $excerpt = $twig->trim($this->getDummyText()); $this->assertEquals(200, mb_strlen($excerpt, 'UTF-8')); }