comparison vendor/sabre/vobject/tests/VObject/GoogleColonEscapingTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
comparison
equal deleted inserted replaced
6:cec75ba50afc 7:430dbd5346f7
1 <?php
2
3 namespace 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 */
11 class GoogleColonEscaping extends \PHPUnit_Framework_TestCase {
12
13 function testDecode() {
14
15 $vcard = <<<VCF
16 BEGIN:VCARD
17 VERSION:3.0
18 FN:Evert Pot
19 N:Pot;Evert;;;
20 EMAIL;TYPE=INTERNET;TYPE=WORK:evert@fruux.com
21 BDAY:1985-04-07
22 item7.URL:http\://www.rooftopsolutions.nl/
23 END:VCARD
24 VCF;
25
26 $vobj = Reader::read($vcard);
27 $this->assertEquals('http://www.rooftopsolutions.nl/', $vobj->URL->getValue());
28
29 }
30
31 }