/** * @expectedException Ciconia\Exception\SyntaxError * @expectedExceptionMessage [link] Unable to find id "id" in Reference-style link at line 3 */ public function testSyntaxErrorPointsRightLineNumber() { $md = new \Ciconia\Ciconia(); $md->render(<<<EOL This is a paragraph This is a [paragraph][id]. <pre> preformatted text </pre> EOL , array('strict' => true)); }
public function testRunTwice() { $ciconia = new \Ciconia\Ciconia(); $markdown = file_get_contents(__DIR__ . '/Resources/core/markdown-testsuite/link-idref.md'); $this->assertEquals($ciconia->render($markdown), $ciconia->render($markdown)); }