ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NoInstancesTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject\Recur;
4
5use PHPUnit\Framework\TestCase;
7
8class NoInstancesTest extends TestCase {
9
13 function testRecurrence() {
14
15 $input = <<<ICS
16BEGIN:VCALENDAR
17PRODID:-//Google Inc//Google Calendar 70.9054//EN
18VERSION:2.0
19BEGIN:VEVENT
20DTSTART;TZID=Europe/Berlin:20130329T140000
21DTEND;TZID=Europe/Berlin:20130329T153000
22RRULE:FREQ=WEEKLY;BYDAY=FR;UNTIL=20130412T115959Z
23EXDATE;TZID=Europe/Berlin:20130405T140000
24EXDATE;TZID=Europe/Berlin:20130329T140000
25DTSTAMP:20140916T201215Z
26UID:foo
27SEQUENCE:1
28SUMMARY:foo
29END:VEVENT
30END:VCALENDAR
31ICS;
32
34 $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
35
36 $it = new EventIterator($vcal, 'foo');
37
38 }
39
40}
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.
testRecurrence()
@expectedException \Sabre\VObject\Recur\NoInstancesException
foreach($paths as $path) if($argc< 3) $input