Page MenuHomePhabricator

SupportedCollationSetTest.php
No OneTemporary

SupportedCollationSetTest.php

<?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\CardDAV\Xml\Property\SupportedCollationSet', $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

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)

Event Timeline