Skip to content

Commit 3c34abf

Browse files
authored
Update FontTest.php
1 parent d407afd commit 3c34abf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/PhpWordTests/Writer/RTF/Style/FontTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public function testFontColorRegistered(): void
8080
$style->setFgColor($style::FGCOLOR_RED);
8181
$style->setBgColor('#123456');
8282

83-
$section = $phpWord->addSection();
84-
$section->addFontStyle('style1', $style);
83+
$phpWord->addFontStyle('style1', $style);
8584
$parentWriter->getWriterPart('Header')->write();
8685

8786
$expect = '\f0\fs48\cf0\highlight0\cb0 ';

0 commit comments

Comments
 (0)