@@ -34,6 +34,11 @@ final class Configuration
34
34
private ?string $ coverageHtml ;
35
35
private int $ coverageHtmlLowUpperBound ;
36
36
private int $ coverageHtmlHighLowerBound ;
37
+ private string $ coverageHtmlColorSuccessLow ;
38
+ private string $ coverageHtmlColorSuccessMedium ;
39
+ private string $ coverageHtmlColorSuccessHigh ;
40
+ private string $ coverageHtmlColorWarning ;
41
+ private string $ coverageHtmlColorDanger ;
37
42
private ?string $ coveragePhp ;
38
43
private ?string $ coverageText ;
39
44
private bool $ coverageTextShowUncoveredFiles ;
@@ -112,7 +117,7 @@ final class Configuration
112
117
*/
113
118
private array $ warnings ;
114
119
115
- public function __construct (?string $ configurationFile , ?string $ bootstrap , bool $ cacheResult , ?string $ cacheDirectory , ?string $ coverageCacheDirectory , string $ testResultCacheFile , ?string $ coverageClover , ?string $ coverageCobertura , ?string $ coverageCrap4j , int $ coverageCrap4jThreshold , ?string $ coverageHtml , int $ coverageHtmlLowUpperBound , int $ coverageHtmlHighLowerBound , ?string $ coveragePhp , ?string $ coverageText , bool $ coverageTextShowUncoveredFiles , bool $ coverageTextShowOnlySummary , ?string $ coverageXml , bool $ pathCoverage , bool $ ignoreDeprecatedCodeUnitsFromCodeCoverage , bool $ disableCodeCoverageIgnore , bool $ failOnEmptyTestSuite , bool $ failOnIncomplete , bool $ failOnRisky , bool $ failOnSkipped , bool $ failOnWarning , bool $ outputToStandardErrorStream , int |string $ columns , bool $ tooFewColumnsRequested , bool $ loadPharExtensions , ?string $ pharExtensionDirectory , bool $ backupGlobals , bool $ backupStaticProperties , bool $ beStrictAboutChangesToGlobalState , bool $ colors , bool $ convertDeprecationsToExceptions , bool $ convertErrorsToExceptions , bool $ convertNoticesToExceptions , bool $ convertWarningsToExceptions , bool $ processIsolation , bool $ stopOnDefect , bool $ stopOnError , bool $ stopOnFailure , bool $ stopOnWarning , bool $ stopOnIncomplete , bool $ stopOnRisky , bool $ stopOnSkipped , bool $ enforceTimeLimit , int $ defaultTimeLimit , int $ timeoutForSmallTests , int $ timeoutForMediumTests , int $ timeoutForLargeTests , bool $ reportUselessTests , bool $ strictCoverage , bool $ disallowTestOutput , bool $ verbose , bool $ reverseDefectList , bool $ requireCoverageMetadata , bool $ registerMockObjectsFromTestArgumentsRecursively , bool $ noInteraction , int $ executionOrder , int $ executionOrderDefects , bool $ resolveDependencies , ?string $ logfileText , ?string $ logfileTeamcity , ?string $ logfileJunit , ?string $ logfileTestdoxHtml , ?string $ logfileTestdoxText , ?string $ logfileTestdoxXml , ?string $ plainTextTrace , bool $ defaultOutput , bool $ teamCityOutput , bool $ testDoxOutput , int $ repeat , ?array $ testsCovering , ?array $ testsUsing , ?string $ filter , ?array $ groups , ?array $ excludeGroups , array $ testdoxGroups , array $ testdoxExcludeGroups , ?string $ includePath , int $ randomOrderSeed , bool $ includeUncoveredFiles , ?string $ xmlValidationErrors , array $ warnings )
120
+ public function __construct (?string $ configurationFile , ?string $ bootstrap , bool $ cacheResult , ?string $ cacheDirectory , ?string $ coverageCacheDirectory , string $ testResultCacheFile , ?string $ coverageClover , ?string $ coverageCobertura , ?string $ coverageCrap4j , int $ coverageCrap4jThreshold , ?string $ coverageHtml , int $ coverageHtmlLowUpperBound , int $ coverageHtmlHighLowerBound , string $ coverageHtmlColorSuccessLow , string $ coverageHtmlColorSuccessMedium , string $ coverageHtmlColorSuccessHigh , string $ coverageHtmlColorWarning , string $ coverageHtmlColorDanger , ?string $ coveragePhp , ?string $ coverageText , bool $ coverageTextShowUncoveredFiles , bool $ coverageTextShowOnlySummary , ?string $ coverageXml , bool $ pathCoverage , bool $ ignoreDeprecatedCodeUnitsFromCodeCoverage , bool $ disableCodeCoverageIgnore , bool $ failOnEmptyTestSuite , bool $ failOnIncomplete , bool $ failOnRisky , bool $ failOnSkipped , bool $ failOnWarning , bool $ outputToStandardErrorStream , int |string $ columns , bool $ tooFewColumnsRequested , bool $ loadPharExtensions , ?string $ pharExtensionDirectory , bool $ backupGlobals , bool $ backupStaticProperties , bool $ beStrictAboutChangesToGlobalState , bool $ colors , bool $ convertDeprecationsToExceptions , bool $ convertErrorsToExceptions , bool $ convertNoticesToExceptions , bool $ convertWarningsToExceptions , bool $ processIsolation , bool $ stopOnDefect , bool $ stopOnError , bool $ stopOnFailure , bool $ stopOnWarning , bool $ stopOnIncomplete , bool $ stopOnRisky , bool $ stopOnSkipped , bool $ enforceTimeLimit , int $ defaultTimeLimit , int $ timeoutForSmallTests , int $ timeoutForMediumTests , int $ timeoutForLargeTests , bool $ reportUselessTests , bool $ strictCoverage , bool $ disallowTestOutput , bool $ verbose , bool $ reverseDefectList , bool $ requireCoverageMetadata , bool $ registerMockObjectsFromTestArgumentsRecursively , bool $ noInteraction , int $ executionOrder , int $ executionOrderDefects , bool $ resolveDependencies , ?string $ logfileText , ?string $ logfileTeamcity , ?string $ logfileJunit , ?string $ logfileTestdoxHtml , ?string $ logfileTestdoxText , ?string $ logfileTestdoxXml , ?string $ plainTextTrace , bool $ defaultOutput , bool $ teamCityOutput , bool $ testDoxOutput , int $ repeat , ?array $ testsCovering , ?array $ testsUsing , ?string $ filter , ?array $ groups , ?array $ excludeGroups , array $ testdoxGroups , array $ testdoxExcludeGroups , ?string $ includePath , int $ randomOrderSeed , bool $ includeUncoveredFiles , ?string $ xmlValidationErrors , array $ warnings )
116
121
{
117
122
$ this ->configurationFile = $ configurationFile ;
118
123
$ this ->bootstrap = $ bootstrap ;
@@ -127,6 +132,11 @@ public function __construct(?string $configurationFile, ?string $bootstrap, bool
127
132
$ this ->coverageHtml = $ coverageHtml ;
128
133
$ this ->coverageHtmlLowUpperBound = $ coverageHtmlLowUpperBound ;
129
134
$ this ->coverageHtmlHighLowerBound = $ coverageHtmlHighLowerBound ;
135
+ $ this ->coverageHtmlColorSuccessLow = $ coverageHtmlColorSuccessLow ;
136
+ $ this ->coverageHtmlColorSuccessMedium = $ coverageHtmlColorSuccessMedium ;
137
+ $ this ->coverageHtmlColorSuccessHigh = $ coverageHtmlColorSuccessHigh ;
138
+ $ this ->coverageHtmlColorWarning = $ coverageHtmlColorWarning ;
139
+ $ this ->coverageHtmlColorDanger = $ coverageHtmlColorDanger ;
130
140
$ this ->coveragePhp = $ coveragePhp ;
131
141
$ this ->coverageText = $ coverageText ;
132
142
$ this ->coverageTextShowUncoveredFiles = $ coverageTextShowUncoveredFiles ;
@@ -412,6 +422,31 @@ public function coverageHtmlHighLowerBound(): int
412
422
return $ this ->coverageHtmlHighLowerBound ;
413
423
}
414
424
425
+ public function coverageHtmlColorSuccessLow (): string
426
+ {
427
+ return $ this ->coverageHtmlColorSuccessLow ;
428
+ }
429
+
430
+ public function coverageHtmlColorSuccessMedium (): string
431
+ {
432
+ return $ this ->coverageHtmlColorSuccessMedium ;
433
+ }
434
+
435
+ public function coverageHtmlColorSuccessHigh (): string
436
+ {
437
+ return $ this ->coverageHtmlColorSuccessHigh ;
438
+ }
439
+
440
+ public function coverageHtmlColorWarning (): string
441
+ {
442
+ return $ this ->coverageHtmlColorWarning ;
443
+ }
444
+
445
+ public function coverageHtmlColorDanger (): string
446
+ {
447
+ return $ this ->coverageHtmlColorDanger ;
448
+ }
449
+
415
450
/**
416
451
* @psalm-assert-if-true !null $this->coveragePhp
417
452
*/
0 commit comments