getHeight()); self::assertIsArray($oRow->getCells()); self::assertCount(0, $oRow->getCells()); self::assertInstanceOf('PhpOffice\\PhpWord\\Style\\Row', $oRow->getStyle()); } /** * Create new instance with parameters. */ public function testConstructWithParams(): void { $iVal = mt_rand(1, 1000); $oRow = new Row($iVal, ['borderBottomSize' => 18, 'borderBottomColor' => '0000FF', 'bgColor' => '66BBFF']); self::assertEquals($iVal, $oRow->getHeight()); self::assertInstanceOf('PhpOffice\\PhpWord\\Style\\Row', $oRow->getStyle()); } /** * Add cell. */ public function testAddCell(): void { $oRow = new Row(); $element = $oRow->addCell(); self::assertInstanceOf('PhpOffice\\PhpWord\\Element\\Cell', $element); self::assertCount(1, $oRow->getCells()); } }