/** * @covers Checkbox::toInput */ public function testToInputCheckedMulti() { $this->checkbox = $this->checkbox->setValue(array(14, 21)); $this->checkbox->setVal(14); $actual = $this->checkbox->toInput(); $excepted = '<input name="DateChoice" type="checkbox" value="14" checked></input>'; $this->assertEquals($excepted, $actual); }
/** * Set checkbox value * * @param string $value * @return LabeledCheckbox */ public function setCheckboxValue($value) { $this->checkbox->setValue($value); return $this; }