Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Commit

Permalink
Adding a tweak/hack to the test to get green tests across all version…
Browse files Browse the repository at this point in the history
…s of Michelf
  • Loading branch information
weaverryan committed Apr 28, 2016
1 parent 4fb2747 commit c74ca06
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Tests/FeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,15 @@ public function testFootNote($parser)
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);
}

/**
Expand Down

0 comments on commit c74ca06

Please sign in to comment.