Page MenuHomePhabricator

IDirectoryTest.php
No OneTemporary

IDirectoryTest.php

<?php
namespace Sabre\CardDAV;
use Sabre\DAV;
class IDirectoryTest extends \PHPUnit_Framework_TestCase {
function testResourceType() {
$tree = array(
new DirectoryMock('directory')
);
$server = new DAV\Server($tree);
$plugin = new Plugin();
$server->addPlugin($plugin);
$props = $server->getProperties('directory', array('{DAV:}resourcetype'));
$this->assertTrue($props['{DAV:}resourcetype']->is('{' . Plugin::NS_CARDDAV . '}directory'));
}
}
class DirectoryMock extends DAV\SimpleCollection implements IDirectory {
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Jan 8, 5:09 AM (2 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914222
Default Alt Text
IDirectoryTest.php (607 B)

Event Timeline