示例#1
0
 public function testCanRemoveMultipleAttributes()
 {
     $element = new Element();
     $attributes = array('type' => 'text', 'class' => 'text-element', 'data-foo' => 'bar');
     $element->setAttributes($attributes);
     $element->removeAttributes(array('type', 'class'));
     $this->assertFalse($element->hasAttribute('type'));
     $this->assertFalse($element->hasAttribute('class'));
 }