Adding a tweak/hack to the test to get green tests across all versions of Michelf

This commit is contained in:
Ryan Weaver 2016-04-27 20:54:22 -04:00
parent 4fb2747817
commit c74ca069f9

View file

@ -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);
}
/**