ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\Issue36WorkAroundTest Class Reference
+ Inheritance diagram for Sabre\VObject\Issue36WorkAroundTest:
+ Collaboration diagram for Sabre\VObject\Issue36WorkAroundTest:

Public Member Functions

 testWorkaround ()
 

Detailed Description

Definition at line 7 of file Issue36WorkAroundTest.php.

Member Function Documentation

◆ testWorkaround()

Sabre\VObject\Issue36WorkAroundTest::testWorkaround ( )

Definition at line 9 of file Issue36WorkAroundTest.php.

References Sabre\VObject\Reader\read().

9  {
10 
11  // See https://github.com/fruux/sabre-vobject/issues/36
12  $event = <<<ICS
13 BEGIN:VCALENDAR
14 VERSION:2.0
15 BEGIN:VEVENT
16 SUMMARY:Titel
17 SEQUENCE:1
18 TRANSP:TRANSPARENT
19 RRULE:FREQ=YEARLY
20 LAST-MODIFIED:20130323T225737Z
21 DTSTAMP:20130323T225737Z
22 UID:1833bd44-188b-405c-9f85-1a12105318aa
23 CATEGORIES:Jubiläum
24 X-MOZ-GENERATION:3
25 RECURRENCE-ID;RANGE=THISANDFUTURE;VALUE=DATE:20131013
26 DTSTART;VALUE=DATE:20131013
27 CREATED:20100721T121914Z
28 DURATION:P1D
29 END:VEVENT
30 END:VCALENDAR
31 ICS;
32 
33  $obj = Reader::read($event);
34 
35  // If this does not throw an exception, it's all good.
36  $it = new Recur\EventIterator($obj, '1833bd44-188b-405c-9f85-1a12105318aa');
37  $this->assertInstanceOf('Sabre\\VObject\\Recur\\EventIterator', $it);
38 
39  }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: