Lines Matching refs:dir
81 $dir = new DirectoryMock();
82 $file = $dir->getChild('mockfile');
89 $dir = new DirectoryMock();
90 $this->assertTrue($dir->childExists('mockfile'));
96 $dir = new DirectoryMock();
97 $this->assertFalse($dir->childExists('mockfile2'));
106 $dir = new DirectoryMock();
107 $file = $dir->getChild('blabla');
116 $dir = new DirectoryMock();
117 $dir->createFile('hello','data');
126 $dir = new DirectoryMock();
127 $dir->createDirectory('hello');
133 $dir = new SimpleCollection('simpledir',array());
134 $this->assertInstanceOf('Sabre\DAV\SimpleCollection', $dir);
144 $dir = new SimpleCollection('simpledir',array($file));
145 $file2 = $dir->getChild('mockfile');
157 $dir = new SimpleCollection('simpledir',array('string shouldn\'t be here'));
167 $dir = new SimpleCollection('simpledir');
168 $dir->addChild($file);
169 $file2 = $dir->getChild('mockfile');
182 $dir = new SimpleCollection('simpledir');
183 $dir->addChild($file);
185 $this->assertEquals(array($file),$dir->getChildren());
194 $dir = new SimpleCollection('simpledir');
195 $this->assertEquals('simpledir',$dir->getName());
205 $dir = new SimpleCollection('simpledir');
206 $dir->getChild('blabla');