Skip to content

Commit e07c655

Browse files
committed
adapt test
1 parent affccc7 commit e07c655

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/PhpWord/TemplateProcessorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public function cloneBlockCanCloneABlockTwice()
260260
// and the placeholders have been replaced correctly
261261
$phpWord = IOFactory::load($templatePath);
262262
$sections = $phpWord->getSections();
263+
/** @var \PhpOffice\PhpWord\Element\TextRun[] $actualElements */
263264
$actualElements = $sections[0]->getElements();
264265
unlink($templatePath);
265266
$expectedElements = array(
@@ -271,7 +272,7 @@ public function cloneBlockCanCloneABlockTwice()
271272
foreach ($expectedElements as $i => $expectedElement) {
272273
$this->assertEquals(
273274
$expectedElement,
274-
$actualElements[$i]->getText()
275+
$actualElements[$i]->getElement(0)->getText()
275276
);
276277
}
277278
}

0 commit comments

Comments
 (0)