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