<commit_before><?php


class SyntaxErrorTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @expectedException FluxBB\CommonMark\Exception\SyntaxError
     * @expectedExceptionMessage [link] Unable to find id "id" in Reference-style link at line 3
     */
    public function testSyntaxErrorPointsRightLineNumber()
    {
        $md = new \FluxBB\CommonMark\Parser();
        $md->render(<<< EOL
This is a paragraph

This is a [paragraph][id].

<pre>
preformatted text
</pre>
EOL
, array('strict' => true)
);
    }

}<commit_msg>Update test to work with latest classes.<commit_after><?php

class SyntaxErrorTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @expectedException FluxBB\CommonMark\Exception\SyntaxError
     * @expectedExceptionMessage [link] Unable to find id "id" in Reference-style link at line 3
     */
    public function testSyntaxErrorPointsRightLineNumber()
    {
        $parser = new \FluxBB\CommonMark\DocumentParser();

        $markdown = <<< EOL
This is a paragraph

This is a [paragraph][id].

<pre>
preformatted text
</pre>
EOL;

        $parser->convert($markdown);
    }

}
{'fraction_non_alphanumeric': 0.11061552185548618, 'fraction_numerical': 0.001784121320249777, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4105968', 'n_tokens_mistral': 346, 'n_tokens_neox': 335, 'n_words': 91}