ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\Issue96Test Class Reference
+ Inheritance diagram for Sabre\VObject\Issue96Test:
+ Collaboration diagram for Sabre\VObject\Issue96Test:

Public Member Functions

 testRead ()
 

Detailed Description

Definition at line 7 of file Issue96Test.php.

Member Function Documentation

◆ testRead()

Sabre\VObject\Issue96Test::testRead ( )

Definition at line 9 of file Issue96Test.php.

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

9  {
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 
21  $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $vcard);
22  $this->assertEquals("http://www.example.org", $vcard->URL->getValue());
23 
24  }
if($argc< 3) $input
static http()
Fetches the global http state from ILIAS.
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
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

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