public function addSection(PHPRtfLite_Container_Section $section = null) { if ($section === null) { $section = new PHPRtfLite_Container_Section($this); } $this->_sections[] = $section; return $section; }
public function testWriteRtfCode() { $section = $this->_rtf->addSection(); $section->writeRtfCode('This is a Unit Test text!'); $this->assertEquals(1, $section->countElements()); }