1<?php
2
3namespace Sabre\VObject\Recur;
4
5use
6    Sabre\VObject\Reader;
7
8class NoInstancesTest extends \PHPUnit_Framework_TestCase {
9
10    /**
11     * @expectedException \Sabre\VObject\Recur\NoInstancesException
12     */
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
33        $vcal = Reader::read($input);
34        $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
35
36        $it = new EventIterator($vcal, 'foo');
37
38    }
39
40}
41