mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-26 02:22:25 +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;
|
||||
|
||||
$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