/** * @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); }