コード例 #1
0
ファイル: NamespaceTest.php プロジェクト: pear/services_yadis
 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());
 }
コード例 #2
0
ファイル: Xrds.php プロジェクト: pear/services_yadis
 /**
  * Returns an array of all currently set namespaces.
  *
  * @return array
  */
 public function getNamespaces()
 {
     return $this->_namespace->getNamespaces();
 }