Ejemplo n.º 1
0
 function test_format_text_email()
 {
     $this->assertEqual("This is a TEST", format_text_email('<p>This is a <strong>test</strong></p>', FORMAT_HTML));
     $this->assertEqual("This is a TEST", format_text_email('<p class="frogs">This is a <strong class=\'fishes\'>test</strong></p>', FORMAT_HTML));
     $this->assertEqual('& so is this', format_text_email('&amp; so is this', FORMAT_HTML));
     $this->assertEqual('Two bullets: ' . textlib::code2utf8(8226) . ' *', format_text_email('Two bullets: &#x2022; &#8226;', FORMAT_HTML));
     $this->assertEqual(textlib::code2utf8(0x7fd2) . textlib::code2utf8(0x7fd2), format_text_email('&#x7fd2;&#x7FD2;', FORMAT_HTML));
 }
Ejemplo n.º 2
0
 /**
  * Tests the static code2utf8 method
  * @return void
  */
 public function test_code2utf8()
 {
     $this->assertSame(textlib::code2utf8(381), 'Ž');
 }
Ejemplo n.º 3
0
 public function test_code2utf8()
 {
     $this->assertIdentical(textlib::code2utf8(381), 'Ž');
 }