Mercurial > hg > rc1
comparison vendor/sabre/vobject/tests/VObject/Issue96Test.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 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 } |