Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1816153
SupportedCollationSetTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
969 B
Subscribers
None
SupportedCollationSetTest.php
View Options
<?php
namespace
Sabre\CardDAV\Xml\Property
;
use
Sabre\CardDAV
;
use
Sabre\DAV
;
class
SupportedCollationSetTest
extends
DAV\Xml\XmlTest
{
function
testSimple
()
{
$property
=
new
SupportedCollationSet
();
$this
->
assertInstanceOf
(
'Sabre
\C
ardDAV
\X
ml
\P
roperty
\S
upportedCollationSet'
,
$property
);
}
/**
* @depends testSimple
*/
function
testSerialize
()
{
$property
=
new
SupportedCollationSet
();
$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:supported-collation>i;ascii-casemap</card:supported-collation>'
.
'<card:supported-collation>i;octet</card:supported-collation>'
.
'<card:supported-collation>i;unicode-casemap</card:supported-collation>'
.
'</d:root>
'
,
$xml
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Dec 20, 3:25 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914530
Default Alt Text
SupportedCollationSetTest.php (969 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment