public function testSerializeUTF8LineFold() { $value = str_repeat('!', 65) . "äbla"; // inserted umlaut-a $property = new Sabre_VObject_Property('propname', $value); $expected = "PROPNAME:" . str_repeat('!', 65) . "\r\n äbla\r\n"; $this->assertEquals($expected, $property->serialize()); }
public function testSerializeLongLine() { $value = str_repeat('!', 200); $property = new Sabre_VObject_Property('propname', $value); $expected = "PROPNAME:" . str_repeat('!', 66) . "\r\n " . str_repeat('!', 74) . "\r\n " . str_repeat('!', 60) . "\r\n"; $this->assertEquals($expected, $property->serialize()); }