ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\Recur\SameDateForRecurringEventsTest Class Reference

Testing case when overridden recurring events have same start date. More...

+ Inheritance diagram for Sabre\VObject\Recur\SameDateForRecurringEventsTest:
+ Collaboration diagram for Sabre\VObject\Recur\SameDateForRecurringEventsTest:

Public Member Functions

 testAllEventsArePresentInIterator ()
 Checking is all events iterated by EventIterator. More...
 

Detailed Description

Testing case when overridden recurring events have same start date.

Class SameDateForRecurringEventsTest

Definition at line 13 of file SameDateForRecurringEventsTest.php.

Member Function Documentation

◆ testAllEventsArePresentInIterator()

Sabre\VObject\Recur\SameDateForRecurringEventsTest::testAllEventsArePresentInIterator ( )

Checking is all events iterated by EventIterator.

Definition at line 19 of file SameDateForRecurringEventsTest.php.

References Sabre\VObject\Reader\read().

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  }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: