ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SameDateForRecurringEventsTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject\Recur;
4
5use PHPUnit\Framework\TestCase;
7
13class SameDateForRecurringEventsTest extends TestCase
14{
15
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 }
56}
An exception for terminatinating execution or to throw for unit testing.
iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
Definition: Reader.php:15
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
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.
testAllEventsArePresentInIterator()
Checking is all events iterated by EventIterator.