File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ outputEscapingEnabled = false
14
14
15
15
defaultFontName = Arial
16
16
defaultFontSize = 10
17
+ defaultFontColor = 000000
17
18
18
19
[Paper]
19
20
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ class SettingsTest extends TestCase
30
30
{
31
31
private $ compatibility ;
32
32
33
+ /** @var string */
34
+ private $ defaultFontColor ;
35
+
33
36
private $ defaultFontSize ;
34
37
35
38
private $ defaultFontName ;
@@ -287,6 +290,7 @@ public function testLoadConfig(): void
287
290
'pdfRendererPath ' => '' ,
288
291
'defaultFontName ' => 'Arial ' ,
289
292
'defaultFontSize ' => 10 ,
293
+ 'defaultFontColor ' => '000000 ' ,
290
294
'outputEscapingEnabled ' => false ,
291
295
'defaultPaper ' => 'A4 ' ,
292
296
];
Original file line number Diff line number Diff line change @@ -33,13 +33,17 @@ class FontTest extends \PHPUnit\Framework\TestCase
33
33
/** @var float|int */
34
34
private $ defaultFontSize ;
35
35
36
+ /** @var string */
37
+ private $ defaultFontColor ;
38
+
36
39
/**
37
40
* Executed before each method of the class.
38
41
*/
39
42
protected function setUp (): void
40
43
{
41
44
$ this ->defaultFontName = Settings::getDefaultFontName ();
42
45
$ this ->defaultFontSize = Settings::getDefaultFontSize ();
46
+ $ this ->defaultFontColor = Settings::getDefaultFontColor ();
43
47
}
44
48
45
49
/**
@@ -49,6 +53,7 @@ protected function tearDown(): void
49
53
{
50
54
Settings::setDefaultFontName ($ this ->defaultFontName );
51
55
Settings::setDefaultFontSize ($ this ->defaultFontSize );
56
+ Settings::setDefaultFontColor ($ this ->defaultFontColor );
52
57
}
53
58
54
59
/**
You can’t perform that action at this time.
0 commit comments