public function testSetAndGetFields()
{
$c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true));
$c->setFields(array('name' => 'Test'));
$c->setField('email', '[email protected]');
$this->assertEquals('Test', $c->getField('name'));
$this->assertEquals(2, count($c->getFields()));
}