Page MenuHomePhabricator

SupportedAddressDataTest.php
No OneTemporary

SupportedAddressDataTest.php

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

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)

Event Timeline