1<?php
2
3namespace Sabre\VObject;
4
5/**
6 * Google produces vcards with a weird escaping of urls.
7 *
8 * VObject will provide a workaround for this, so end-user still get expected
9 * values.
10 */
11class GoogleColonEscaping extends \PHPUnit_Framework_TestCase {
12
13    function testDecode() {
14
15        $vcard = <<<VCF
16BEGIN:VCARD
17VERSION:3.0
18FN:Evert Pot
19N:Pot;Evert;;;
20EMAIL;TYPE=INTERNET;TYPE=WORK:evert@fruux.com
21BDAY:1985-04-07
22item7.URL:http\://www.rooftopsolutions.nl/
23END:VCARD
24VCF;
25
26        $vobj = Reader::read($vcard);
27        $this->assertEquals('http://www.rooftopsolutions.nl/', $vobj->URL->getValue());
28
29    }
30
31}
32