7use PHPUnit\Framework\TestCase;
12 use \Sabre\VObject\PHPUnitAssertions;
21DTSTART:20150109T090000
23RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20191002T070000Z;BYDAY=FR
29 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
31 $vcal =
$vcal->expand(
new DateTime(
'2015-01-01'),
new DateTime(
'2015-01-31'));
37DTSTART:20150109T090000Z
39RECURRENCE-ID:20150109T090000Z
43DTSTART:20150116T090000Z
45RECURRENCE-ID:20150116T090000Z
49DTSTART:20150123T090000Z
51RECURRENCE-ID:20150123T090000Z
55DTSTART:20150130T090000Z
57RECURRENCE-ID:20150130T090000Z
73DTSTART:20150109T090000
75RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20191002T070000Z;BYDAY=FR
81 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
84 new DateTime(
'2015-01-01'),
85 new DateTime(
'2015-01-31'),
86 new DateTimeZone(
'Europe/Berlin')
94DTSTART:20150109T080000Z
96RECURRENCE-ID:20150109T080000Z
100DTSTART:20150116T080000Z
101DTEND:20150116T090000Z
102RECURRENCE-ID:20150116T080000Z
106DTSTART:20150123T080000Z
107DTEND:20150123T090000Z
108RECURRENCE-ID:20150123T080000Z
112DTSTART:20150130T080000Z
113DTEND:20150130T090000Z
114RECURRENCE-ID:20150130T080000Z
An exception for terminatinating execution or to throw for unit testing.
iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
testExpandWithReferenceTimezone()
foreach($paths as $path) if($argc< 3) $input