/** * Get text object */ public function testText() { $oListItem = new ListItem('text'); $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Text', $oListItem->getTextObject()); }
/** * Get text object */ public function testText() { $oListItem = new ListItem(htmlspecialchars('text', ENT_COMPAT, 'UTF-8')); $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Text', $oListItem->getTextObject()); }