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