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')); }