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