public function getContent($free = true) { $this->createWriter(); $this->render(); if ($free) { $this->free(); } return $this->_writer->getContent(); }
/** * tests addHeader with expected exception for all page header * @expectedException PHPRtfLite_Exception */ public function testAddHeaderAllException() { $this->_rtf->setOddEvenDifferent(); $this->_rtf->addHeader(PHPRtfLite_Container_Header::TYPE_ALL); $this->_rtf->getContent(); }