コード例 #1
0
 public function testSettingMultipleAttributesFromArray()
 {
     $attrs = array('a1' => 'v1', 'a2' => 'v2');
     $this->node->setAttributes($attrs);
     $this->assertEquals('v1', $this->node->getAttribute('a1'));
     $this->assertEquals('v2', $this->node->getAttribute('a2'));
 }