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