ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
UriTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject\Property
;
4
5
use
PHPUnit\Framework\TestCase
;
6
use
Sabre\VObject\Reader
;
7
8
class
UriTest
extends
TestCase {
9
10
function
testAlwaysEncodeUriVCalendar
() {
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
}
Sabre\VObject\$output
$output
Definition:
mergeduplicates.php:36
Sabre\VObject\$input
if($argc< 3) $input
Definition:
mergeduplicates.php:35
Sabre\VObject\Property
Definition:
Binary.php:3
ILIAS\FileDelivery\http
static http()
Fetches the global http state from ILIAS.
Definition:
HttpServiceAware.php:36
Sabre\VObject\Property\UriTest\testAlwaysEncodeUriVCalendar
testAlwaysEncodeUriVCalendar()
Definition:
UriTest.php:10
Reader
Sabre\VObject\Property\UriTest
Definition:
UriTest.php:8
Sabre\VObject\Reader\read
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition:
Reader.php:42
php
TestCase
libs
composer
vendor
sabre
vobject
tests
VObject
Property
UriTest.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)