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());
 }
Exemple #2
0
 /**
  * Add a list (array) of additional namespaces to be utilised by the XML
  * parser when it receives a valid XRD document.
  *
  * @param   array $namespaces
  * @return  Services_Yadis
  */
 public function addNamespaces(array $namespaces)
 {
     $this->_namespace->addNamespaces($namespaces);
     return $this;
 }