1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

We should be using strict mode in commonmark benchmark

This commit is contained in:
Aidan Woods 2019-01-22 21:35:13 +00:00
parent 67231cbae1
commit 9d97b8eb6a
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -2,7 +2,9 @@
namespace Erusev\Parsedown\Tests;
use Erusev\Parsedown\Configurables\StrictMode;
use Erusev\Parsedown\Parsedown;
use Erusev\Parsedown\State;
use PHPUnit\Framework\TestCase;
/**
@ -18,7 +20,9 @@ class CommonMarkTestStrict extends TestCase
protected function setUp()
{
$this->parsedown = new Parsedown;
$this->parsedown = new Parsedown(new State([
StrictMode::enabled()
]));
// $this->parsedown->setUrlsLinked(false);
}