ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NoInstancesTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\VObject\Recur;
4 
7 
8 class NoInstancesTest extends TestCase {
9 
13  function testRecurrence() {
14 
15  $input = <<<ICS
16 BEGIN:VCALENDAR
17 PRODID:-//Google Inc//Google Calendar 70.9054//EN
18 VERSION:2.0
19 BEGIN:VEVENT
20 DTSTART;TZID=Europe/Berlin:20130329T140000
21 DTEND;TZID=Europe/Berlin:20130329T153000
22 RRULE:FREQ=WEEKLY;BYDAY=FR;UNTIL=20130412T115959Z
23 EXDATE;TZID=Europe/Berlin:20130405T140000
24 EXDATE;TZID=Europe/Berlin:20130329T140000
25 DTSTAMP:20140916T201215Z
26 UID:foo
27 SEQUENCE:1
28 SUMMARY:foo
29 END:VEVENT
30 END:VCALENDAR
31 ICS;
32 
34  $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
35 
36  $it = new EventIterator($vcal, 'foo');
37 
38  }
39 
40 }
if($argc< 3) $input
This class is used to determine new for a recurring event, when the next events occur.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42