We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent affccc7 commit e07c655Copy full SHA for e07c655
tests/PhpWord/TemplateProcessorTest.php
@@ -260,6 +260,7 @@ public function cloneBlockCanCloneABlockTwice()
260
// and the placeholders have been replaced correctly
261
$phpWord = IOFactory::load($templatePath);
262
$sections = $phpWord->getSections();
263
+ /** @var \PhpOffice\PhpWord\Element\TextRun[] $actualElements */
264
$actualElements = $sections[0]->getElements();
265
unlink($templatePath);
266
$expectedElements = array(
@@ -271,7 +272,7 @@ public function cloneBlockCanCloneABlockTwice()
271
272
foreach ($expectedElements as $i => $expectedElement) {
273
$this->assertEquals(
274
$expectedElement,
- $actualElements[$i]->getText()
275
+ $actualElements[$i]->getElement(0)->getText()
276
);
277
}
278
0 commit comments