public function testCanSetFieldAsRequired()
{
$this->former->withRules(array('foo' => 'required'));
$input = $this->former->text('foo')->__toString();
$this->assertHTML($this->matchField(array('required' => 'true')), $input);
$this->assertLabel($input, 'foo', true);
$this->assertHTML($this->matchControlGroup(), $input);
}