Mercurial > hg > rc1
view vendor/sabre/vobject/tests/VObject/VCard21Test.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 |
line wrap: on
line source
<?php namespace Sabre\VObject; /** * Assorted vcard 2.1 tests. */ class VCard21Test extends \PHPUnit_Framework_TestCase { function testPropertyWithNoName() { $input = <<<VCF BEGIN:VCARD\r VERSION:2.1\r EMAIL;HOME;WORK:evert@fruux.com\r END:VCARD\r VCF; $vobj = Reader::read($input); $output = $vobj->serialize($input); $this->assertEquals($input, $output); } function testPropertyPadValueCount() { $input = <<<VCF BEGIN:VCARD VERSION:2.1 N:Foo END:VCARD VCF; $vobj = Reader::read($input); $output = $vobj->serialize($input); $expected = <<<VCF BEGIN:VCARD\r VERSION:2.1\r N:Foo;;;;\r END:VCARD\r VCF; $this->assertEquals($expected, $output); } }
