public function testCanClearAllAttributes() { $element = new Element(); $attributes = array('type' => 'text', 'class' => 'text-element', 'data-foo' => 'bar'); $element->setAttributes($attributes); $element->clearAttributes(); $this->assertEquals(array(), $element->getAttributes()); }