/** * @covers Radio::toInput */ public function testToInputChecked() { $value = "June"; $radio = $this->radio->setVal($value); $radio = $radio->setValue($value); $actual = $radio->toInput(); $excepted = '<input name="dates" type="radio" value="June" checked></input>'; $this->assertEquals($excepted, $actual); }