Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821053
VCard21Test.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
753 B
Subscribers
None
VCard21Test.php
View Options
<?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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Dec 23, 1:54 AM (2 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
915790
Default Alt Text
VCard21Test.php (753 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment