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

Improve test/CommonMarkTestWeak.php

This commit is contained in:
Daniel Rudolf 2016-09-05 15:31:07 +02:00
parent 2cacfb8da4
commit 228d5f4754
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538

View File

@ -15,12 +15,13 @@ require_once(__DIR__ . '/CommonMarkTest.php');
*/
class CommonMarkTestWeak extends CommonMarkTest
{
protected $textLevelElementRegex;
protected function setUp()
{
parent::setUp();
$textLevelElements = $this->parsedown->getTextLevelElements();
array_walk($textLevelElements, function (&$element) {
$element = preg_quote($element, '/');
});