1*a1a3b679SAndreas Boehler<?php 2*a1a3b679SAndreas Boehler 3*a1a3b679SAndreas Boehlernamespace Sabre\VObject; 4*a1a3b679SAndreas Boehler 5*a1a3b679SAndreas Boehlerclass Issue64Test extends \PHPUnit_Framework_TestCase { 6*a1a3b679SAndreas Boehler 7*a1a3b679SAndreas Boehler function testRead() { 8*a1a3b679SAndreas Boehler 9*a1a3b679SAndreas Boehler $vcard = Reader::read(file_get_contents(dirname(__FILE__) . '/issue64.vcf')); 10*a1a3b679SAndreas Boehler $vcard = $vcard->convert(\Sabre\VObject\Document::VCARD30); 11*a1a3b679SAndreas Boehler $vcard = $vcard->serialize(); 12*a1a3b679SAndreas Boehler 13*a1a3b679SAndreas Boehler $converted = Reader::read($vcard); 14*a1a3b679SAndreas Boehler 15*a1a3b679SAndreas Boehler $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $converted); 16*a1a3b679SAndreas Boehler 17*a1a3b679SAndreas Boehler } 18*a1a3b679SAndreas Boehler 19*a1a3b679SAndreas Boehler} 20