Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1817744
SupportedCollationSetTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
919 B
Subscribers
None
SupportedCollationSetTest.php
View Options
<?php
namespace
Sabre\CalDAV\Xml\Property
;
use
Sabre\CalDAV
;
use
Sabre\DAV
;
class
SupportedCollationSetTest
extends
DAV\Xml\XmlTest
{
function
testSimple
()
{
$scs
=
new
SupportedCollationSet
();
$this
->
assertInstanceOf
(
'Sabre
\C
alDAV
\X
ml
\P
roperty
\S
upportedCollationSet'
,
$scs
);
}
/**
* @depends testSimple
*/
function
testSerialize
()
{
$property
=
new
SupportedCollationSet
();
$this
->
namespaceMap
[
CalDAV\Plugin
::
NS_CALDAV
]
=
'cal'
;
$xml
=
$this
->
write
([
'{DAV:}root'
=>
$property
]);
$this
->
assertXmlStringEqualsXmlString
(
'<?xml version="1.0"?>
<d:root xmlns:d="DAV:" xmlns:cal="'
.
CalDAV\Plugin
::
NS_CALDAV
.
'">
<cal:supported-collation>i;ascii-casemap</cal:supported-collation>
<cal:supported-collation>i;octet</cal:supported-collation>
<cal:supported-collation>i;unicode-casemap</cal:supported-collation>
</d:root>'
,
$xml
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 4:02 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914243
Default Alt Text
SupportedCollationSetTest.php (919 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment