Issue96Test.php 532 B

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