ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
UriTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\VObject\Property;
4 
7 
8 class UriTest extends TestCase {
9 
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  }
27 
28 }
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