/** * 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(); }