예제 #1
0
 public function testCanRemoveSingleAttribute()
 {
     $element = new Element();
     $attributes = array('type' => 'text', 'class' => 'text-element', 'data-foo' => 'bar');
     $element->setAttributes($attributes);
     $element->removeAttribute('type');
     $this->assertFalse($element->hasAttribute('type'));
 }