Skip to content

Commit 40dfdec

Browse files
Update tests/PhpWordTests/Writer/Word2007/Element/TOCTest.php
Co-authored-by: Progi1984 <progi1984@gmail.com>
1 parent d5d6b9c commit 40dfdec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PhpWordTests/Writer/Word2007/Element/TOCTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public function testWriteTitleWithoutpageNumber(): void
7676
self::assertEquals('Title ' . $i, $doc->getElement('/w:document/w:body/w:p[' . $i . ']/w:hyperlink/w:r[1]/w:t')->textContent);
7777
self::assertTrue($doc->elementExists('/w:document/w:body/w:p[' . $i . ']/w:hyperlink/w:r[4]/w:instrText'));
7878
self::assertEquals('preserve', $doc->getElementAttribute('/w:document/w:body/w:p[' . $i . ']/w:hyperlink/w:r[4]/w:instrText', 'xml:space'));
79+
self::assertEquals('PAGEREF \\h', $doc->getElement('/w:document/w:body/w:p[' . $i . ']/w:hyperlink/w:r[4]/w:instrText')->nodeValue);
7980
}
8081
}
8182
}

0 commit comments

Comments
 (0)