public function testElementsAreAddedToPrototype()
 {
     $fieldset = new HTML_QuickForm2_Container_Fieldset();
     $repeat = new HTML_QuickForm2_Container_Repeat(null, null, array('prototype' => $fieldset));
     $textOne = new HTML_QuickForm2_Element_InputText('firstText');
     $textTwo = new HTML_QuickForm2_Element_InputText('secondText');
     $repeat->appendChild($textOne);
     $this->assertSame($textOne->getContainer(), $fieldset);
     $repeat->insertBefore($textTwo, $textOne);
     $this->assertSame($textTwo->getContainer(), $fieldset);
     $repeat->removeChild($textOne);
     $this->assertNull($textOne->getContainer());
 }