public function testAttributesHTML()
 {
     $field = new FormField('MyField');
     $field->setAttribute('foo', 'bar');
     $this->assertContains('foo="bar"', $field->getAttributesHTML());
     $field->setAttribute('foo', null);
     $this->assertNotContains('foo=', $field->getAttributesHTML());
     $field->setAttribute('foo', '');
     $this->assertNotContains('foo=', $field->getAttributesHTML());
     $field->setAttribute('foo', false);
     $this->assertNotContains('foo=', $field->getAttributesHTML());
     $field->setAttribute('foo', true);
     $this->assertContains('foo="foo"', $field->getAttributesHTML());
     $field->setAttribute('foo', 'false');
     $this->assertContains('foo="false"', $field->getAttributesHTML());
     $field->setAttribute('foo', 'true');
     $this->assertContains('foo="true"', $field->getAttributesHTML());
     $field->setAttribute('foo', 0);
     $this->assertContains('foo="0"', $field->getAttributesHTML());
     $field->setAttribute('one', 1);
     $field->setAttribute('two', 2);
     $field->setAttribute('three', 3);
     $this->assertNotContains('one="1"', $field->getAttributesHTML('one', 'two'));
     $this->assertNotContains('two="2"', $field->getAttributesHTML('one', 'two'));
     $this->assertContains('three="3"', $field->getAttributesHTML('one', 'two'));
 }