public function testForeachWarningOnGetValue() { $fieldset = new HTML_QuickForm2_Container_Fieldset(); $repeat = new HTML_QuickForm2_Container_Repeat(null, null, array('prototype' => $fieldset)); $fieldset->addText('foo'); $repeat->setIndexes(array(1)); $this->assertEquals(null, $repeat->getValue()); }