示例#1
0
 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());
 }
示例#2
0
 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());
 }