Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1819906
SupportedAddressDataTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
970 B
Subscribers
None
SupportedAddressDataTest.php
View Options
<?php
namespace
Sabre\CardDAV\Xml\Property
;
use
Sabre\CardDAV
;
use
Sabre\DAV
;
class
SupportedAddressDataDataTest
extends
DAV\Xml\XmlTest
{
function
testSimple
()
{
$property
=
new
SupportedAddressData
();
$this
->
assertInstanceOf
(
'Sabre
\C
ardDAV
\X
ml
\P
roperty
\S
upportedAddressData'
,
$property
);
}
/**
* @depends testSimple
*/
function
testSerialize
()
{
$property
=
new
SupportedAddressData
();
$this
->
namespaceMap
[
CardDAV\Plugin
::
NS_CARDDAV
]
=
'card'
;
$xml
=
$this
->
write
([
'{DAV:}root'
=>
$property
]);
$this
->
assertXmlStringEqualsXmlString
(
'<?xml version="1.0"?>
<d:root xmlns:card="'
.
CardDAV\Plugin
::
NS_CARDDAV
.
'" xmlns:d="DAV:">'
.
'<card:address-data-type content-type="text/vcard" version="3.0"/>'
.
'<card:address-data-type content-type="text/vcard" version="4.0"/>'
.
'<card:address-data-type content-type="application/vcard+json" version="4.0"/>'
.
'</d:root>
'
,
$xml
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 2:04 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914770
Default Alt Text
SupportedAddressDataTest.php (970 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment