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); }
/** * @depends testSimpleDirectoryConstruct * @expectedException Sabre\DAV\Exception\NotFound */ public function testSimpleDirectoryGetChild404() { $dir = new SimpleCollection('simpledir'); $dir->getChild('blabla'); }