annotate vendor/sabre/vobject/tests/VObject/Issue64Test.php @ 35:05c4c32948af
.hgignore: add vendor tree
composer.json: new packages
plugins/thunderbird_labels/thunderbird_labels.php: change hook and RFC822 use wrt whitelisting to avoid deprecated stuff
index.php: commented debugging hooks
others: new releases of vendor packages?
| author |
Charlie Root |
| date |
Thu, 30 Aug 2018 16:21:59 -0400 |
| parents |
430dbd5346f7 |
| children |
|
| rev |
line source |
|
7
|
1 <?php
|
|
|
2
|
|
|
3 namespace Sabre\VObject;
|
|
|
4
|
|
|
5 class Issue64Test extends \PHPUnit_Framework_TestCase {
|
|
|
6
|
|
|
7 function testRead() {
|
|
|
8
|
|
|
9 $vcard = Reader::read(file_get_contents(dirname(__FILE__) . '/issue64.vcf'));
|
|
|
10 $vcard = $vcard->convert(\Sabre\VObject\Document::VCARD30);
|
|
|
11 $vcard = $vcard->serialize();
|
|
|
12
|
|
|
13 $converted = Reader::read($vcard);
|
|
|
14
|
|
|
15 $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $converted);
|
|
|
16
|
|
|
17 }
|
|
|
18
|
|
|
19 }
|