| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 21 | public function testAutoSelectFirstDefaultDoesNotChangeValue() |
||
| 22 | { |
||
| 23 | $input = new \Nip_Form_Element_RadioGroup(new \Nip\Form\Form()); |
||
| 24 | $input->addOption('123', 'Age'); |
||
| 25 | $input->addOption('789', 'Height'); |
||
| 26 | $input->autoSelectFirst(true); |
||
| 27 | |||
| 28 | self::assertSame(null, $input->getValue()); |
||
| 29 | |||
| 30 | $input->render(); |
||
| 31 | self::assertSame(null, $input->getValue()); |
||
| 32 | } |
||
| 34 |