ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
GoogleColonEscapingTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject;
4
5use PHPUnit\Framework\TestCase;
6
13class GoogleColonEscapingTest extends TestCase {
14
15 function testDecode() {
16
17 $vcard = <<<VCF
18BEGIN:VCARD
19VERSION:3.0
20FN:Evert Pot
21N:Pot;Evert;;;
22EMAIL;TYPE=INTERNET;TYPE=WORK:evert@fruux.com
23BDAY:1985-04-07
24item7.URL:http\://www.rooftopsolutions.nl/
25END:VCARD
26VCF;
27
28 $vobj = Reader::read($vcard);
29 $this->assertEquals('http://www.rooftopsolutions.nl/', $vobj->URL->getValue());
30
31 }
32
33}
An exception for terminatinating execution or to throw for unit testing.
Google produces vcards with a weird escaping of urls.
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.
$vobj
Definition: rrulebench.php:21