/** * Add text run */ public function testCreateTextRun() { $oCell = new Cell('section', 1); $element = $oCell->addTextRun(); $this->assertCount(1, $oCell->getElements()); $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\TextRun', $element); }