예제 #1
0
 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());
 }