Пример #1
0
    /**
     * @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));
    }
Пример #2
0
 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));
 }