Unit tests MDL-24992 Fixed mod/wiki unit test CRLF issue (ahem, not using ereg)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user