6use PHPUnit\Framework\TestCase;
25DTSTAMP:19700101T000000Z
31DTSTART:20070925T160000Z
32CREATED:20071004T144642Z
33RRULE:FREQ=DAILY;BYMONTH=9,10;BYDAY=SU
39 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
41 $vcal =
$vcal->expand(
new DateTime(
'2013-09-28'),
new DateTime(
'2014-09-11'));
43 foreach (
$vcal->VEVENT as $event) {
44 $dates[] = $event->DTSTART->getValue();
56 $this->assertEquals($expectedDates, $dates,
'Recursed dates are restricted by month');
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()
This tests the expansion of dates with DAILY frequency in RRULE with BYMONTH restrictions.