Unit tests MDL-24992 Fixed mod/wiki unit test CRLF issue (ahem, not using ereg)

This commit is contained in:
Sam Marshall
2010-11-01 18:06:10 +00:00
parent cf72c96949
commit 49a874ce80
+2 -2
View File
@@ -68,8 +68,8 @@ class wikiparser_test extends UnitTestCase {
$result = wiki_parser_proxy::parse($input, $markup, array('pretty_print' => true));
//removes line breaks to avoid line break encoding causing tests to fail.
$result['parsed_text'] = ereg_replace("[\r\n]", '', $result['parsed_text']);
$output = ereg_replace("[\r\n]", '', $output);
$result['parsed_text'] = preg_replace('~[\r\n]~', '', $result['parsed_text']);
$output = preg_replace('~[\r\n]~', '', $output);
$this->assertEqual($result['parsed_text'], $output);
return true;