public function testConvertToPseudoHtml()
 {
     $oField = new oxField();
     $oField->setValue("ssss<\n>");
     $oField->convertToPseudoHtml();
     $this->assertEquals("ssss&lt;<br />\n&gt;", $oField->rawValue);
     $this->assertEquals("ssss&lt;<br />\n&gt;", $oField->value);
 }
Exemple #2
0
 public function testOxFieldConvertToPseudoHtml()
 {
     $oField = new oxField("a&g<e>n\"t'ūrų Литовские für\r\n");
     $oField->convertToPseudoHtml();
     $this->assertEquals("a&amp;g&lt;e&gt;n&quot;t&#039;ūrų Литовские für<br />\n", $oField->getRawValue());
 }