/**
  * Contents of static elements within repeat erroneously cleared
  * @link http://pear.php.net/bugs/bug.php?id=19802
  */
 public function testBug19802()
 {
     $fieldset = new HTML_QuickForm2_Container_Fieldset();
     $repeat = new HTML_QuickForm2_Container_Repeat(null, null, array('prototype' => $fieldset));
     $fieldset->addStatic()->setContent('Content of static element')->setTagName('p');
     $arrayOne = $repeat->render(HTML_QuickForm2_Renderer::factory('array'))->toArray();
     $arrayTwo = $repeat->render(HTML_QuickForm2_Renderer::factory('array'))->toArray();
     $this->assertEquals($arrayOne['elements'][0]['elements'][0]['html'], $arrayTwo['elements'][0]['elements'][0]['html']);
 }