Mercurial > hg > rc1
comparison vendor/sabre/vobject/tests/VObject/Issue36WorkAroundTest.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 class Issue36WorkAroundTest extends \PHPUnit_Framework_TestCase { | |
6 | |
7 function testWorkaround() { | |
8 | |
9 // See https://github.com/fruux/sabre-vobject/issues/36 | |
10 $event = <<<ICS | |
11 BEGIN:VCALENDAR | |
12 VERSION:2.0 | |
13 BEGIN:VEVENT | |
14 SUMMARY:Titel | |
15 SEQUENCE:1 | |
16 TRANSP:TRANSPARENT | |
17 RRULE:FREQ=YEARLY | |
18 LAST-MODIFIED:20130323T225737Z | |
19 DTSTAMP:20130323T225737Z | |
20 UID:1833bd44-188b-405c-9f85-1a12105318aa | |
21 CATEGORIES:Jubiläum | |
22 X-MOZ-GENERATION:3 | |
23 RECURRENCE-ID;RANGE=THISANDFUTURE;VALUE=DATE:20131013 | |
24 DTSTART;VALUE=DATE:20131013 | |
25 CREATED:20100721T121914Z | |
26 DURATION:P1D | |
27 END:VEVENT | |
28 END:VCALENDAR | |
29 ICS; | |
30 | |
31 $obj = Reader::read($event); | |
32 | |
33 // If this does not throw an exception, it's all good. | |
34 $it = new Recur\EventIterator($obj,'1833bd44-188b-405c-9f85-1a12105318aa'); | |
35 $this->assertInstanceOf('Sabre\\VObject\\Recur\EventIterator', $it); | |
36 | |
37 } | |
38 | |
39 } |