public function testMarkdown() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['html'] = $this->getMockHandler('HtmlHandler', 'markdown'); $twig = new TwigExtension($app, $handlers, true); $twig->markdown(null); }
public function testSlug() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $twig = new TwigExtension($app, $handlers, false); $this->assertEquals('<h1>My <strong>big</strong> title</h1>', $twig->markdown("# My **big** title")); }