mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-17 05:06:19 +02:00
Adding a tweak/hack to the test to get green tests across all versions of Michelf
This commit is contained in:
parent
4fb2747817
commit
c74ca069f9
|
@ -765,7 +765,15 @@ EOF;
|
||||||
|
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
$this->assertEquals($html, $parser->transform($text));
|
// newer versions of Michelf add an extra ︎ To make the tests
|
||||||
|
// pass against ALL versions, we just hack the ︎ into the
|
||||||
|
// expected string if it isn't there
|
||||||
|
$actualHtml = $parser->transform($text);
|
||||||
|
if (strpos($actualHtml, '︎') === false) {
|
||||||
|
$actualHtml = str_replace('↩', '↩︎', $actualHtml);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->assertEquals($html, $actualHtml);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue