assertEquals(0, $section->countElements()); // Heading $styles = array('strong', 'em', 'sup', 'sub'); for ($level = 1; $level <= 6; $level++) { $content .= "Heading {$level}"; } // Styles $content .= '

'; foreach ($styles as $style) { $content .= "<{$style}>{$style}"; } $content .= '

'; // Add HTML Html::addHtml($section, $content); $this->assertEquals(7, $section->countElements()); // Other parts $section = new Section(1); $content = ''; $content .= '
HeaderContent
'; $content .= ''; $content .= '
  1. Bullet
'; Html::addHtml($section, $content, null, array('listdepth' => 2)); } }