view vendor/sabre/vobject/tests/VObject/Issue64Test.php @ 41:d2414df68d78

Updated by Alex S Grebenschikov (www.poralix.com) to make it compatible with RoundCube 1.3.0
author Charlie Root
date Fri, 24 Jan 2025 14:20:15 -0500
parents 430dbd5346f7
children
line wrap: on
line source

<?php

namespace Sabre\VObject;

class Issue64Test extends \PHPUnit_Framework_TestCase {

    function testRead() {

        $vcard = Reader::read(file_get_contents(dirname(__FILE__) . '/issue64.vcf'));
        $vcard = $vcard->convert(\Sabre\VObject\Document::VCARD30);
        $vcard = $vcard->serialize();

        $converted = Reader::read($vcard);

        $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $converted);

    }

}