/** * @depends testSimpleDirectoryConstruct * @expectedException Sabre_DAV_Exception_NotFound */ public function testSimpleDirectoryGetChild404() { $dir = new Sabre_DAV_SimpleCollection('simpledir'); $dir->getChild('blabla'); }
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); }