getTextObject()); } /** * Get style. */ public function testStyle(): void { $oListItem = new ListItem('text', 1, null, ['listType' => \PhpOffice\PhpWord\Style\ListItem::TYPE_NUMBER]); self::assertInstanceOf('PhpOffice\\PhpWord\\Style\\ListItem', $oListItem->getStyle()); self::assertEquals(\PhpOffice\PhpWord\Style\ListItem::TYPE_NUMBER, $oListItem->getStyle()->getListType()); } /** * Get depth. */ public function testDepth(): void { $iVal = mt_rand(1, 1000); $oListItem = new ListItem('text', $iVal); self::assertEquals($iVal, $oListItem->getDepth()); } }