7use PHPUnit\Framework\TestCase;
17DTEND;TZID=Europe/Moscow:20130710T120000
18DTSTART;TZID=Europe/Moscow:20130710T110000
19RRULE:FREQ=DAILY;UNTIL=20130712T195959Z
23DTEND;TZID=Europe/Moscow:20130713T120000
24DTSTART;TZID=Europe/Moscow:20130713T110000
25RECURRENCE-ID;TZID=Europe/Moscow:20130711T110000
31 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
35 $result = iterator_to_array($it);
37 $tz =
new DateTimeZone(
'Europe/Moscow');
40 new DateTimeImmutable(
'2013-07-10 11:00:00',
$tz),
41 new DateTimeImmutable(
'2013-07-12 11:00:00',
$tz),
42 new DateTimeImmutable(
'2013-07-13 11:00:00',
$tz),
45 $this->assertEquals($expected,
$result);
An exception for terminatinating execution or to throw for unit testing.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
This class is used to determine new for a recurring event, when the next events occur.
foreach($paths as $path) if($argc< 3) $input