Actualización

This commit is contained in:
xesmyd committed 2025-04-10 12:24:57 +02:00
1 parent 8969cc929d
commit 45420b6f0d
39760 files changed
+4303286

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
<?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);
}
}