Mercurial > hg > rc1
comparison vendor/sabre/vobject/tests/VObject/Recur/EventIterator/NoInstancesTest.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\Recur; | |
| 4 | |
| 5 use | |
| 6 Sabre\VObject\Reader; | |
| 7 | |
| 8 class IssueEXDATETest extends \PHPUnit_Framework_TestCase { | |
| 9 | |
| 10 /** | |
| 11 * @expectedException \Sabre\VObject\Recur\NoInstancesException | |
| 12 */ | |
| 13 function testRecurrence() { | |
| 14 | |
| 15 $input = <<<ICS | |
| 16 BEGIN:VCALENDAR | |
| 17 PRODID:-//Google Inc//Google Calendar 70.9054//EN | |
| 18 VERSION:2.0 | |
| 19 BEGIN:VEVENT | |
| 20 DTSTART;TZID=Europe/Berlin:20130329T140000 | |
| 21 DTEND;TZID=Europe/Berlin:20130329T153000 | |
| 22 RRULE:FREQ=WEEKLY;BYDAY=FR;UNTIL=20130412T115959Z | |
| 23 EXDATE;TZID=Europe/Berlin:20130405T140000 | |
| 24 EXDATE;TZID=Europe/Berlin:20130329T140000 | |
| 25 DTSTAMP:20140916T201215Z | |
| 26 UID:foo | |
| 27 SEQUENCE:1 | |
| 28 SUMMARY:foo | |
| 29 END:VEVENT | |
| 30 END:VCALENDAR | |
| 31 ICS; | |
| 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 } |
