getSections() 공개 메소드

gets sections
public getSections ( ) : array
리턴 array
예제 #1
0
 /**
  * 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()));
 }