/** * {@inheritdoc} */ public function getAncestor($depth) { return $this->node->getAncestor($depth); }
/** * @expectedException \PHPCR\ItemNotFoundException */ public function testGetAncestorTooDeep() { $this->deepnode->getAncestor($this->deepnode->getDepth() + 1); }