test case should deal with \r characters

This commit is contained in:
Emanuil 2013-08-31 20:11:48 +03:00
parent 8ac52a2f30
commit 097ec5e8a5
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class Test extends PHPUnit_Framework_TestCase
continue;
$expected_markup = file_get_contents(__DIR__ . '/' . self::provider_dir . $basename . '.html');
$expected_markup = str_replace("\r\n", "\n", $expected_markup);
$expected_markup = str_replace("\r", "\n", $expected_markup);
$provider [] = array($markdown, $expected_markup);
}