diff --git a/Tests/FeatureTest.php b/Tests/FeatureTest.php index b47864a..4581b35 100644 --- a/Tests/FeatureTest.php +++ b/Tests/FeatureTest.php @@ -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); } /**