Esempio n. 1
0
 function getChild($name)
 {
     if (isset($this->newDirectories[$name])) {
         return new Sabre_DAV_TreeDirectoryTester($name);
     }
     if (isset($this->newFiles[$name])) {
         return new Sabre_DAV_TreeFileTester($name, $this->newFiles[$name]);
     }
     return parent::getChild($name);
 }
Esempio n. 2
0
 /**
  * @depends testSimpleDirectoryConstruct
  * @expectedException Sabre_DAV_Exception_NotFound
  */
 public function testSimpleDirectoryGetChild404()
 {
     $dir = new Sabre_DAV_SimpleDirectory('simpledir');
     $dir->getChild('blabla');
 }