function testFieldValueWithoutSettingValue() { /* Create the field, but don't set any value on it */ $field = new CheckboxField('IsChecked', 'Checked'); /* dataValue() for the field is 0 */ $this->assertEquals($field->dataValue(), 0, 'dataValue() returns a 0'); /* Value() returns 0 as well */ $this->assertEquals($field->Value(), 0, 'Value() returns a 0'); }