ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Issue96Test.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject;
4
5use PHPUnit\Framework\TestCase;
6
7class Issue96Test extends TestCase {
8
9 function testRead() {
10
11 $input = <<<VCF
12BEGIN:VCARD
13VERSION:2.1
14SOURCE:Yahoo Contacts (http://contacts.yahoo.com)
15URL;CHARSET=utf-8;ENCODING=QUOTED-PRINTABLE:=
16http://www.example.org
17END:VCARD
18VCF;
19
21 $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $vcard);
22 $this->assertEquals("http://www.example.org", $vcard->URL->getValue());
23
24 }
25
26}
An exception for terminatinating execution or to throw for unit testing.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
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 http()
Fetches the global http state from ILIAS.
foreach($paths as $path) if($argc< 3) $input