6use PHPUnit\Framework\TestCase;
26DTSTART;TZID=Europe/Copenhagen:20150101T170000
27RRULE:FREQ=MONTHLY;BYDAY=TH;BYSETPOS=-2
28UID:b4071499-6fe4-418a-83b8-2b8d5ebb38e4
34 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
36 $vcal =
$vcal->expand(
new DateTime(
'2015-01-01'),
new DateTime(
'2016-01-01'));
38 foreach (
$vcal->VEVENT as $event) {
39 $dates[] = $event->DTSTART->getValue();
58 $this->assertEquals($expectedDates, $dates);
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.
testExpand()
Using this iCalendar object, including BYSETPOS=-2 causes the iterator to hang, as reported in ticket...