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.

20 {
21 $ics = <<<ICS
22BEGIN:VCALENDAR
23BEGIN:VEVENT
24UID:1
25DTSTART;TZID=Europe/Kiev:20160713T110000
26DTEND;TZID=Europe/Kiev:20160713T113000
27RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3
28END:VEVENT
29BEGIN:VEVENT
30UID:2
31DTSTART;TZID=Europe/Kiev:20160713T110000
32DTEND;TZID=Europe/Kiev:20160713T113000
33RECURRENCE-ID;TZID=Europe/Kiev:20160714T110000
34END:VEVENT
35BEGIN:VEVENT
36UID:3
37DTSTART;TZID=Europe/Kiev:20160713T110000
38DTEND;TZID=Europe/Kiev:20160713T113000
39RECURRENCE-ID;TZID=Europe/Kiev:20160715T110000
40END:VEVENT
41BEGIN:VEVENT
42UID:4
43DTSTART;TZID=Europe/Kiev:20160713T110000
44DTEND;TZID=Europe/Kiev:20160713T113000
45RECURRENCE-ID;TZID=Europe/Kiev:20160716T110000
46END:VEVENT
47END:VCALENDAR
48
49
50ICS;
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

References Sabre\VObject\Reader\read().

+ Here is the call graph for this function:

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