ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SameDateForRecurringEventsTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\VObject\Recur;
4 
7 
13 class SameDateForRecurringEventsTest extends TestCase
14 {
15 
20  {
21  $ics = <<<ICS
22 BEGIN:VCALENDAR
23 BEGIN:VEVENT
24 UID:1
25 DTSTART;TZID=Europe/Kiev:20160713T110000
26 DTEND;TZID=Europe/Kiev:20160713T113000
27 RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3
28 END:VEVENT
29 BEGIN:VEVENT
30 UID:2
31 DTSTART;TZID=Europe/Kiev:20160713T110000
32 DTEND;TZID=Europe/Kiev:20160713T113000
33 RECURRENCE-ID;TZID=Europe/Kiev:20160714T110000
34 END:VEVENT
35 BEGIN:VEVENT
36 UID:3
37 DTSTART;TZID=Europe/Kiev:20160713T110000
38 DTEND;TZID=Europe/Kiev:20160713T113000
39 RECURRENCE-ID;TZID=Europe/Kiev:20160715T110000
40 END:VEVENT
41 BEGIN:VEVENT
42 UID:4
43 DTSTART;TZID=Europe/Kiev:20160713T110000
44 DTEND;TZID=Europe/Kiev:20160713T113000
45 RECURRENCE-ID;TZID=Europe/Kiev:20160716T110000
46 END:VEVENT
47 END:VCALENDAR
48 
49 
50 ICS;
51  $vCalendar = Reader::read($ics);
52  $eventIterator = new EventIterator($vCalendar->getComponents());
53 
54  $this->assertEquals(4, iterator_count($eventIterator), 'in ICS 4 events');
55  }
56 }
testAllEventsArePresentInIterator()
Checking is all events iterated by EventIterator.
This class is used to determine new for a recurring event, when the next events occur.
Testing case when overridden recurring events have same start date.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42