Пример #1
0
 /**
  * Get style
  */
 public function testStyle()
 {
     $oListItem = new ListItem(htmlspecialchars('text', ENT_COMPAT, 'UTF-8'), 1, null, array('listType' => \PhpOffice\PhpWord\Style\ListItem::TYPE_NUMBER));
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\ListItem', $oListItem->getStyle());
     $this->assertEquals(\PhpOffice\PhpWord\Style\ListItem::TYPE_NUMBER, $oListItem->getStyle()->getListType());
 }
Пример #2
0
 /**
  * Get style
  */
 public function testStyle()
 {
     $oListItem = new ListItem('text', 1, null, array('listType' => \PhpOffice\PhpWord\Style\ListItem::TYPE_NUMBER));
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\ListItem', $oListItem->getStyle());
     $this->assertEquals($oListItem->getStyle()->getListType(), \PhpOffice\PhpWord\Style\ListItem::TYPE_NUMBER);
 }