* @package html
* @subpackage unit_test_case
*/
class Test_Form_Hidden extends Test_Html_Template {
/**
* the value
*/
const __VALUE__ = 'Value';
const __NAME__ = 'hiddenField';
/**
* constructor
* @access public
* @return void
*/
public function __construct() {
parent :: __construct();
$this->value = self :: __VALUE__;
}
/**
* reinit the FormButton object
* @access public
* @return void
*/
public function setUp() {
$this->obj = new Form_Hidden(self :: __NAME__);
}
/**
* test the set style method
* @access public
* @return void
*/
public function testDefault() {
$this->_testCode('');
}
/**
* test the set value method
* @access public
* @return void
*/
public function testSetValue() {
$this->obj->setValue($this->value);
$this->_testCode('');
}
/**
* test the set disabled method
* @access public
* @return void
*/
public function testSetDisabled() {
try {
$this->obj->setDisabled();
$this->assertTrue(false, 'No exception is thrown when asking disabled method on ' . get_class($this->obj) . ' instance');
}
catch (Exception $e) {
$this->_testCode('');
}
}
}
}