Beispiel #1
0
 function getChild($name)
 {
     if (isset($this->newDirectories[$name])) {
         return new TreeDirectoryTester($name);
     }
     if (isset($this->newFiles[$name])) {
         return new TreeFileTester($name, $this->newFiles[$name]);
     }
     return parent::getChild($name);
 }
Beispiel #2
0
 /**
  * @depends testSimpleDirectoryConstruct
  * @expectedException Sabre\DAV\Exception\NotFound
  */
 public function testSimpleDirectoryGetChild404()
 {
     $dir = new SimpleCollection('simpledir');
     $dir->getChild('blabla');
 }