Skip to content

Commit a2fac74

Browse files
authored
Merge pull request #3 from MichaelPFrey/fix-mfr-2024-11-22
debuging the tests
2 parents c2afe42 + 8aaa00f commit a2fac74

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

phpword.ini.dist

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ outputEscapingEnabled = false
1414

1515
defaultFontName = Arial
1616
defaultFontSize = 10
17+
defaultFontColor = 000000
1718

1819
[Paper]
1920

tests/PhpWordTests/SettingsTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class SettingsTest extends TestCase
3030
{
3131
private $compatibility;
3232

33+
/** @var string */
34+
private $defaultFontColor;
35+
3336
private $defaultFontSize;
3437

3538
private $defaultFontName;
@@ -287,6 +290,7 @@ public function testLoadConfig(): void
287290
'pdfRendererPath' => '',
288291
'defaultFontName' => 'Arial',
289292
'defaultFontSize' => 10,
293+
'defaultFontColor' => '000000',
290294
'outputEscapingEnabled' => false,
291295
'defaultPaper' => 'A4',
292296
];

tests/PhpWordTests/Writer/HTML/FontTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ class FontTest extends \PHPUnit\Framework\TestCase
3333
/** @var float|int */
3434
private $defaultFontSize;
3535

36+
/** @var string */
37+
private $defaultFontColor;
38+
3639
/**
3740
* Executed before each method of the class.
3841
*/
3942
protected function setUp(): void
4043
{
4144
$this->defaultFontName = Settings::getDefaultFontName();
4245
$this->defaultFontSize = Settings::getDefaultFontSize();
46+
$this->defaultFontColor = Settings::getDefaultFontColor();
4347
}
4448

4549
/**
@@ -49,6 +53,7 @@ protected function tearDown(): void
4953
{
5054
Settings::setDefaultFontName($this->defaultFontName);
5155
Settings::setDefaultFontSize($this->defaultFontSize);
56+
Settings::setDefaultFontColor($this->defaultFontColor);
5257
}
5358

5459
/**

0 commit comments

Comments
 (0)