示例#1
0
 public function testSettingMultipleAttributesWithNamespaceFromArray()
 {
     $attrs = array('a1' => 'v1', 'a2' => 'v2');
     $this->node->setAttributesNS('some:uri', 's', $attrs);
     $this->assertEquals('v1', $this->node->getAttributeNS('some:uri', 'a1'));
     $this->assertEquals('v2', $this->node->getAttributeNS('some:uri', 'a2'));
 }