7
|
1 <?php
|
|
2
|
|
3 namespace Sabre\VObject;
|
|
4
|
|
5 class Issue96Test extends \PHPUnit_Framework_TestCase {
|
|
6
|
|
7 function testRead() {
|
|
8
|
|
9 $input = <<<VCF
|
|
10 BEGIN:VCARD
|
|
11 VERSION:2.1
|
|
12 SOURCE:Yahoo Contacts (http://contacts.yahoo.com)
|
|
13 URL;CHARSET=utf-8;ENCODING=QUOTED-PRINTABLE:=
|
|
14 http://www.example.org
|
|
15 END:VCARD
|
|
16 VCF;
|
|
17
|
|
18 $vcard = Reader::read($input, Reader::OPTION_FORGIVING);
|
|
19 $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $vcard);
|
|
20 $this->assertEquals("http://www.example.org", $vcard->url->getValue());
|
|
21
|
|
22 }
|
|
23
|
|
24 }
|