public function testSetFields()
{
$fields = array('username' => array('type' => 'text', 'value' => 'Username here...', 'label' => 'Username:', 'required' => true, 'attributes' => array('size' => 40)), 'upload' => array('type' => 'file', 'label' => 'File:', 'required' => true, 'attributes' => array('size' => 40)));
$f = new Form('/submit', 'post', $fields);
$this->assertEquals(2, count($f->getFields()));
$this->assertTrue($f->hasFile());
}