ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
UriTest.php
Go to the documentation of this file.
1<?php
2
4
5use PHPUnit\Framework\TestCase;
7
8class 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
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 }
27
28}
An exception for terminatinating execution or to throw for unit testing.
iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
Definition: Reader.php:15
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