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