setData('asdf');
$html = '';
$this->assertEquals($html, $field->render(array('class' => 'foobar')));
}
// when the user made an error in the form, display the value in the field
public function testRenderAfterBinding()
{
$field = new PasswordField('name');
$field->bind('asdf');
$html = '';
$this->assertEquals($html, $field->render());
}
public function testRenderNotAlwaysEmpty()
{
$field = new PasswordField('name', array('always_empty' => false));
$field->setData('asdf');
$html = '';
$this->assertEquals($html, $field->render());
}
public function testRenderNotAlwaysEmptyAfterBinding()
{
$field = new PasswordField('name', array('always_empty' => false));
$field->bind('asdf');
$html = '';
$this->assertEquals($html, $field->render());
}
}