public function testSetFieldValues()
{
$fields = array('username' => array('type' => 'text', 'value' => 'Username here...', 'label' => 'Username:', 'required' => true, 'attributes' => array('size' => 40), 'error' => array('h3' => array('class' => 'error-class'), 'pre' => true), 'validators' => new \Pop\Validator\AlphaNumeric()), 'checkbox' => array('type' => 'checkbox', 'value' => array(0 => 'Test1', 1 => 'Test2', 2 => 'Test3'), 'label' => 'Checkbox:', 'marked' => array(0, 1), 'required' => true), 'radio' => array('type' => 'radio', 'value' => array(0 => 'Test1', 1 => 'Test2', 2 => 'Test3'), 'label' => 'Radio:', 'marked' => 0, 'required' => true), 'select' => array('type' => 'select', 'value' => array(0 => 'Test1', 1 => 'Test2', 2 => 'Test3'), 'label' => 'Select:', 'marked' => 0, 'required' => true), 'textarea' => array('type' => 'textarea', 'label' => 'Textarea:', 'required' => true, 'attributes' => array('rows' => 40), 'validators' => array(new \Pop\Validator\AlphaNumeric(), new \Pop\Validator\LengthGt(6))));
$f = new Form('/submit', 'post', $fields);
$f->setFieldValues(array('username' => '<p>te\'st"<script>user</script></p>'), array('strip_tags' => '<p>', 'htmlentities' => array(ENT_QUOTES, 'UTF-8')));
$this->assertEquals('<p>te'st"user</p>', $f->username);
}