3 class Sabre_CalDAV_Property_SupportedCollationSetTest extends PHPUnit_Framework_TestCase {
5 function testSimple() {
7 $scs = new Sabre_CalDAV_Property_SupportedCollationSet();
14 function testSerialize() {
16 $property = new Sabre_CalDAV_Property_SupportedCollationSet();
18 $doc = new DOMDocument();
19 $root = $doc->createElement('d:root');
20 $root->setAttribute('xmlns:d','DAV:');
21 $root->setAttribute('xmlns:cal',Sabre_CalDAV_Plugin::NS_CALDAV);
23 $doc->appendChild($root);
24 $objectTree = new Sabre_DAV_ObjectTree(new Sabre_DAV_SimpleCollection('rootdir'));
25 $server = new Sabre_DAV_Server($objectTree);
27 $property->serialize($server, $root);
29 $xml = $doc->saveXML();
32 '<?xml version="1.0"?>
33 <d:root xmlns:d="DAV:" xmlns:cal="' . Sabre_CalDAV_Plugin::NS_CALDAV . '">' .
34 '<cal:supported-collation>i;ascii-casemap</cal:supported-collation>' .
35 '<cal:supported-collation>i;octet</cal:supported-collation>' .
36 '<cal:supported-collation>i;unicode-casemap</cal:supported-collation>' .