Carew\Tests\Event\Listener\Body\TocTest::testOnDocumentDoesNotAlterLink PHP Method

    public function testOnDocumentDoesNotAlterLink()
    {
        $document = new Document();
        $document->setPath('index.html');
        $body = <<<EOL
<a href="{{ path(\\'foobar\\') }}">foobar</a>
AAAAA
<a href="{{ path(\\'baba\\') }}">baba</a>
BBBBB
<a href="{{ path(\\'bar\\') }}">bar</a>
CCCCC
<a href="{{ path(\\'foobar\\') }}">foobar</a>
EOL;
        $document->setBody($body);
        $event = new CarewEvent($document);
        $toc = new Toc();
        $toc->onDocument($event);
        $this->assertSame($body, $document->getBody());
    }