Mercurial > hg > rc1
comparison vendor/sabre/vobject/tests/VObject/Issue26Test.php @ 7:430dbd5346f7
vendor sabre as distributed
author | Charlie Root |
---|---|
date | Sat, 13 Jan 2018 09:06:10 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:cec75ba50afc | 7:430dbd5346f7 |
---|---|
1 <?php | |
2 | |
3 namespace Sabre\VObject; | |
4 | |
5 use | |
6 DateTime, | |
7 DateTimeZone; | |
8 | |
9 class Issue26Test extends \PHPUnit_Framework_TestCase { | |
10 | |
11 /** | |
12 * @expectedException \InvalidArgumentException | |
13 */ | |
14 function testExpand() { | |
15 | |
16 $input = <<<ICS | |
17 BEGIN:VCALENDAR | |
18 VERSION:2.0 | |
19 BEGIN:VEVENT | |
20 UID:bae5d57a98 | |
21 RRULE:FREQ=MONTHLY;BYDAY=0MO,0TU,0WE,0TH,0FR;INTERVAL=1 | |
22 DTSTART;VALUE=DATE:20130401 | |
23 DTEND;VALUE=DATE:20130402 | |
24 END:VEVENT | |
25 END:VCALENDAR | |
26 ICS; | |
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 } |