30 $this->assertEquals(0, $file->getSize());
38 $this->assertNull($file->getETag());
45 $this->assertNull($file->getContentType());
73 $lastMod = $file->getLastModified();
74 $compareTime = ($lastMod + 1) - time();
75 $this->assertTrue($compareTime < 3);
82 $file = $dir->getChild(
'mockfile');
83 $this->assertTrue($file instanceof
FileMock);
90 $this->assertTrue($dir->childExists(
'mockfile'));
97 $this->assertFalse($dir->childExists(
'mockfile2'));
107 $file = $dir->getChild(
'blabla');
117 $dir->createFile(
'hello',
'data');
127 $dir->createDirectory(
'hello');
134 $this->assertInstanceOf(
'Sabre\DAV\SimpleCollection', $dir);
145 $file2 = $dir->getChild(
'mockfile');
147 $this->assertEquals($file, $file2);
168 $dir->addChild($file);
169 $file2 = $dir->getChild(
'mockfile');
171 $this->assertEquals($file, $file2);
183 $dir->addChild($file);
185 $this->assertEquals([$file], $dir->getChildren());
195 $this->assertEquals(
'simpledir', $dir->getName());
206 $dir->getChild(
'blabla');
getChildren()
Returns an array with all the child nodes.
testSimpleDirectoryConstruct()
testSimpleDirectoryAddChild()
testSimpleDirectoryConstruct
getName()
Returns the name of the node.
testCreateDirectory()
Sabre
testSimpleDirectoryConstructChild()
testSimpleDirectoryConstruct
testSimpleDirectoryGetChildren()
testSimpleDirectoryConstruct testSimpleDirectoryAddChild
getName()
Returns the name of the node.
testSimpleDirectoryGetChild404()
testSimpleDirectoryConstruct Sabre
testSimpleDirectoryBadParam()
Sabre testSimpleDirectoryConstruct
testSimpleDirectoryGetName()