From 097ec5e8a5941db9d2ae9516b6d68d2f436cd5bb Mon Sep 17 00:00:00 2001 From: Emanuil <4thmail@gmail.com> Date: Sat, 31 Aug 2013 20:11:48 +0300 Subject: [PATCH] test case should deal with \r characters --- tests/Test.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Test.php b/tests/Test.php index f243a19..ddde175 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -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); }