Example #1
0
 public function testfold_ical_lines()
 {
     //test with short strings
     $result = vCal::fold_ical_lines('testkey', 'testvalue');
     $this->assertEquals('testkey:testvalue', $result);
     //test with longer strings
     $expected = "testkey11111111111111111111111111111111111111111111111111111111111111111111\r\n\t11111111111111111111111111111111:testvalue11111111111111111111111111111111\r\n\t11111111111111111111111111111111111111111111111111111111111111111111";
     $result = vCal::fold_ical_lines('testkey' . str_repeat('1', 100), 'testvalue' . str_repeat('1', 100));
     $this->assertEquals();
 }