コード例 #1
0
ファイル: SanitizerTest.php プロジェクト: ming-hai/XoopsCore
 /**
  * @covers Xoops\Core\Text\Sanitizer::nl2Br
  */
 public function testNl2Br()
 {
     $text = "\n";
     $message = $this->object->nl2br($text);
     $this->assertEquals("\n<br />\n", $message);
     $text = "\r\n";
     $message = $this->object->nl2br($text);
     $this->assertEquals("\n<br />\n", $message);
     $text = "\r";
     $message = $this->object->nl2br($text);
     $this->assertEquals("\n<br />\n", $message);
 }