function testGetName() { $pBackend = new DAVACL\PrincipalBackend\Mock(); $cBackend = new Backend\Mock(); $root = new AddressBookRoot($pBackend, $cBackend); $this->assertEquals('addressbooks', $root->getName()); }
function getName() { if ($this->principalPrefix === 'principals') { return parent::getName(); } // Grabbing all the components of the principal path. $parts = explode('/', $this->principalPrefix); // We are only interested in the second part. return $parts[1]; }
/** * Returns the name of the node * * @return string */ function getName() { return parent::getName(); }