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