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.

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
16BEGIN:VCALENDAR
17VERSION:2.0
18BEGIN:VEVENT
19URL:http://example.org/
20END:VEVENT
21END:VCALENDAR
22ICS;
23 $output = Reader::read($input)->serialize();
24 $this->assertContains('URL;VALUE=URI:http://example.org/', $output);
25
26 }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
static http()
Fetches the global http state from ILIAS.
foreach($paths as $path) if($argc< 3) $input

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

+ Here is the call graph for this function:

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