/** * tests addSection * @covers PHPRtfLite::getSections */ public function testAddSection() { $section = $this->_rtf->addSection(); $this->assertInstanceOf('PHPRtfLite_Container_Section', $section); $this->_rtf->addSection(new PHPRtfLite_Container_Section($this->_rtf)); $this->assertEquals(2, count($this->_rtf->getSections())); }