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