Skip to content

Commit 9a423cf

Browse files
author
Jui-Nan Lin
committed
test: test set/get function in PHPWord
1 parent d907fff commit 9a423cf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/PhpWordTests/PhpWordTest.php

+12
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ public function testSetGetDefaultFontSize(): void
8282
self::assertEquals($fontSize, $phpWord->getDefaultFontSize());
8383
}
8484

85+
/**
86+
* Test set/get default asian font name.
87+
*/
88+
public function testSetGetDefaultAsianFontName(): void
89+
{
90+
$phpWord = new PhpWord();
91+
$fontName = 'Times New Roman';
92+
self::assertEquals(Settings::DEFAULT_FONT_NAME, $phpWord->getDefaultAsianFontName());
93+
$phpWord->setDefaultAsianFontName($fontName);
94+
self::assertEquals($fontName, $phpWord->getDefaultAsianFontName());
95+
}
96+
8597
/**
8698
* Test set default paragraph style.
8799
*/

0 commit comments

Comments
 (0)