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

Public Member Functions

 testAlwaysEncodeUriVCalendar ()
 

Detailed Description

Definition at line 8 of file UriTest.php.

Member Function Documentation

◆ testAlwaysEncodeUriVCalendar()

Sabre\VObject\Property\UriTest::testAlwaysEncodeUriVCalendar ( )

Definition at line 10 of file UriTest.php.

References Sabre\VObject\$input, Sabre\VObject\$output, ILIAS\FileDelivery\http(), and Sabre\VObject\Reader\read().

10  {
11 
12  // Apple iCal has issues with URL properties that don't have
13  // VALUE=URI specified. We added a workaround to vobject that
14  // ensures VALUE=URI always appears for these.
15  $input = <<<ICS
16 BEGIN:VCALENDAR
17 VERSION:2.0
18 BEGIN:VEVENT
19 URL:http://example.org/
20 END:VEVENT
21 END:VCALENDAR
22 ICS;
23  $output = Reader::read($input)->serialize();
24  $this->assertContains('URL;VALUE=URI:http://example.org/', $output);
25 
26  }
if($argc< 3) $input
static http()
Fetches the global http state from ILIAS.
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: