1<?php
2
3namespace Sabre\VObject\Recur\EventIterator;
4
5use Sabre\VObject\Reader;
6use Sabre\VObject\Recur\EventIterator;
7
8class Issue26Test extends \PHPUnit_Framework_TestCase {
9
10    /**
11     * @expectedException \Sabre\VObject\InvalidDataException
12     */
13    function testExpand() {
14
15        $input = <<<ICS
16BEGIN:VCALENDAR
17VERSION:2.0
18BEGIN:VEVENT
19UID:bae5d57a98
20RRULE:FREQ=MONTHLY;BYDAY=0MO,0TU,0WE,0TH,0FR;INTERVAL=1
21DTSTART;VALUE=DATE:20130401
22DTEND;VALUE=DATE:20130402
23END:VEVENT
24END:VCALENDAR
25ICS;
26
27        $vcal = Reader::read($input);
28        $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
29
30        $it = new EventIterator($vcal, 'bae5d57a98');
31
32    }
33
34}
35