xref: /plugin/davcal/vendor/sabre/vobject/tests/VObject/Issue96Test.php (revision a1a3b6794e0e143a4a8b51d3185ce2d339be61ab)
1*a1a3b679SAndreas Boehler<?php
2*a1a3b679SAndreas Boehler
3*a1a3b679SAndreas Boehlernamespace Sabre\VObject;
4*a1a3b679SAndreas Boehler
5*a1a3b679SAndreas Boehlerclass Issue96Test extends \PHPUnit_Framework_TestCase {
6*a1a3b679SAndreas Boehler
7*a1a3b679SAndreas Boehler    function testRead() {
8*a1a3b679SAndreas Boehler
9*a1a3b679SAndreas Boehler        $input = <<<VCF
10*a1a3b679SAndreas BoehlerBEGIN:VCARD
11*a1a3b679SAndreas BoehlerVERSION:2.1
12*a1a3b679SAndreas BoehlerSOURCE:Yahoo Contacts (http://contacts.yahoo.com)
13*a1a3b679SAndreas BoehlerURL;CHARSET=utf-8;ENCODING=QUOTED-PRINTABLE:=
14*a1a3b679SAndreas Boehlerhttp://www.example.org
15*a1a3b679SAndreas BoehlerEND:VCARD
16*a1a3b679SAndreas BoehlerVCF;
17*a1a3b679SAndreas Boehler
18*a1a3b679SAndreas Boehler        $vcard = Reader::read($input, Reader::OPTION_FORGIVING);
19*a1a3b679SAndreas Boehler        $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $vcard);
20*a1a3b679SAndreas Boehler        $this->assertEquals("http://www.example.org", $vcard->url->getValue());
21*a1a3b679SAndreas Boehler
22*a1a3b679SAndreas Boehler    }
23*a1a3b679SAndreas Boehler
24*a1a3b679SAndreas Boehler}
25