22 UID:2CD5887F7CF4600F7A3B1F8065099E40-240BDA7121B61224
23 DTSTAMP;VALUE=DATE-TIME:20151014T110604Z
24 CREATED;VALUE=DATE-TIME:20151014T110245Z
25 LAST-MODIFIED;VALUE=DATE-TIME:20151014T110541Z
26 DTSTART;VALUE=DATE-TIME;TZID=Europe/Berlin:20151012T020000
27 DTEND;VALUE=DATE-TIME;TZID=Europe/Berlin:20151012T013000
30 RDATE;VALUE=DATE-TIME;TZID=Europe/Berlin:20151015T020000,20151017T020000,20
31 151018T020000,20151020T020000
39 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
45 $this->assertEquals(5, count(
$result));
56 $result = array_map(
function($ev) {
return $ev->DTSTART->getDateTime();},
$result);
57 $this->assertEquals($expected,
$result);
This is a unittest for Issue #53.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.