ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Issue96Test.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject
;
4
5
use
PHPUnit\Framework\TestCase
;
6
7
class
Issue96Test
extends
TestCase {
8
9
function
testRead
() {
10
11
$input
= <<<VCF
12
BEGIN:VCARD
13
VERSION:2.1
14
SOURCE:Yahoo Contacts (
http
:
//contacts.yahoo.com)
15
URL;CHARSET=utf-8;ENCODING=QUOTED-PRINTABLE:=
16
http
:
//www.example.org
17
END:VCARD
18
VCF;
19
20
$vcard =
Reader::read
(
$input
,
Reader::OPTION_FORGIVING
);
21
$this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCard'
, $vcard);
22
$this->assertEquals(
"http://www.example.org"
, $vcard->URL->getValue());
23
24
}
25
26
}
Sabre\VObject
Definition:
mergeduplicates.php:4
Sabre\VObject\Issue96Test\testRead
testRead()
Definition:
Issue96Test.php:9
Sabre\VObject\$input
if($argc< 3) $input
Definition:
mergeduplicates.php:35
Sabre\VObject\Issue96Test
Definition:
Issue96Test.php:7
ILIAS\FileDelivery\http
static http()
Fetches the global http state from ILIAS.
Definition:
HttpServiceAware.php:36
Sabre\VObject\Reader\OPTION_FORGIVING
const OPTION_FORGIVING
If this option is passed to the reader, it will be less strict about the validity of the lines...
Definition:
Reader.php:21
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
Issue96Test.php
Generated on Thu Jan 16 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)