Definition at line 9 of file Issue48Test.php.
◆ testExpand()
Sabre\VObject\Issue48Test::testExpand |
( |
| ) |
|
Definition at line 11 of file Issue48Test.php.
11 {
12
14BEGIN:VCALENDAR
15BEGIN:VEVENT
16UID:foo
17DTEND;TZID=Europe/Moscow:20130710T120000
18DTSTART;TZID=Europe/Moscow:20130710T110000
19RRULE:FREQ=DAILY;UNTIL=20130712T195959Z
20END:VEVENT
21BEGIN:VEVENT
22UID:foo
23DTEND;TZID=Europe/Moscow:20130713T120000
24DTSTART;TZID=Europe/Moscow:20130713T110000
25RECURRENCE-ID;TZID=Europe/Moscow:20130711T110000
26END:VEVENT
27END:VCALENDAR
28ICS;
29
31 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCalendar',
$vcal);
32
33 $it =
new Recur\EventIterator(
$vcal,
'foo');
34
35 $result = iterator_to_array($it);
36
37 $tz =
new DateTimeZone(
'Europe/Moscow');
38
39 $expected = [
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),
43 ];
44
45 $this->assertEquals($expected,
$result);
46
47 }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
foreach($paths as $path) if($argc< 3) $input
References Sabre\VObject\$input, $result, $tz, $vcal, and Sabre\VObject\Reader\read().
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/vobject/tests/VObject/Recur/EventIterator/Issue48Test.php