/** * Add preserve text exception * * @expectedException \BadMethodCallException */ public function testAddPreserveTextException() { $oCell = new Cell(); $oCell->setDocPart('Section', 1); $oCell->addPreserveText(htmlspecialchars('text', ENT_COMPAT, 'UTF-8')); }
/** * Add preserve text exception * * @expectedException \BadMethodCallException */ public function testAddPreserveTextException() { $oCell = new Cell(); $oCell->setDocPart('Section', 1); $oCell->addPreserveText('text'); }