public function testAddNamespaces() { $initial = array('xrds' => 'xri://$xrds', 'xrd' => 'xri://$xrd*($v*2.0)'); $spaces = array('test' => 'http://example.com/test', 'test2' => 'http://example.com/test'); $name = new Services_Yadis_Xrds_Namespace(); $name->addNamespaces($spaces); $this->assertEquals($initial + $spaces, $name->getNamespaces()); }
/** * Returns an array of all currently set namespaces. * * @return array */ public function getNamespaces() { return $this->_namespace->getNamespaces(); }