From: fmarier Date: Mon, 15 Jun 2009 06:08:42 +0000 (+0000) Subject: MDL-2794 testweblib: adapt the unit tests to the output of new html2text library X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3e83641fdceae9d566f32e3af3196b9bc95a87fb;p=moodle.git MDL-2794 testweblib: adapt the unit tests to the output of new html2text library --- diff --git a/lib/simpletest/testweblib.php b/lib/simpletest/testweblib.php index 961cd3e6a9..c98d65769b 100644 --- a/lib/simpletest/testweblib.php +++ b/lib/simpletest/testweblib.php @@ -42,17 +42,17 @@ class web_test extends UnitTestCase { } function test_format_text_email() { - $this->assertEqual('This is a TEST', + $this->assertEqual("\n\nThis is a TEST", format_text_email('

This is a test

',FORMAT_HTML)); - $this->assertEqual('This is a TEST', + $this->assertEqual("\n\nThis is a TEST", format_text_email('

This is a test

',FORMAT_HTML)); $this->assertEqual('& so is this', - format_text_email('

& so is this

',FORMAT_HTML)); + format_text_email('& so is this',FORMAT_HTML)); $tl = textlib_get_instance(); - $this->assertEqual('Two bullets: '.$tl->code2utf8(8226).' '.$tl->code2utf8(8226), - format_text_email('

Two bullets: • •

',FORMAT_HTML)); + $this->assertEqual('Two bullets: '.$tl->code2utf8(8226).' *', + format_text_email('Two bullets: • •',FORMAT_HTML)); $this->assertEqual($tl->code2utf8(0x7fd2).$tl->code2utf8(0x7fd2), - format_text_email('

習習

',FORMAT_HTML)); + format_text_email('習習',FORMAT_HTML)); } function test_highlight() {