| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | public function test_getElements_initFromForm() |
||
| 15 | { |
||
| 16 | $form = new Form(); |
||
| 17 | $form->addInput('test1'); |
||
| 18 | $form->addInput('test2'); |
||
| 19 | |||
| 20 | $rendered = new \Nip_Form_Renderer_Basic(); |
||
| 21 | $rendered->setForm($form); |
||
| 22 | |||
| 23 | $elements = $rendered->getElements(); |
||
| 24 | self::assertIsArray($elements); |
||
| 25 | self::assertCount(2, $elements); |
||
| 26 | } |
||
| 28 |