@@ -82,6 +82,11 @@ final class Arguments
8282 */
8383 private $ configuration ;
8484
85+ /**
86+ * @var null|string[]
87+ */
88+ private $ coverageFilter ;
89+
8590 /**
8691 * @var ?string
8792 */
@@ -422,11 +427,6 @@ final class Arguments
422427 */
423428 private $ version ;
424429
425- /**
426- * @var null|string[]
427- */
428- private $ whitelist ;
429-
430430 /**
431431 * @var ?string
432432 */
@@ -435,7 +435,7 @@ final class Arguments
435435 /**
436436 * @param null|int|string $columns
437437 */
438- public function __construct (?string $ argument , ?string $ atLeastVersion , ?bool $ backupGlobals , ?bool $ backupStaticAttributes , ?bool $ beStrictAboutChangesToGlobalState , ?bool $ beStrictAboutResourceUsageDuringSmallTests , ?string $ bootstrap , ?bool $ cacheResult , ?string $ cacheResultFile , ?bool $ checkVersion , ?string $ colors , $ columns , ?string $ configuration , ?string $ coverageClover , ?string $ coverageCrap4J , ?string $ coverageHtml , ?string $ coveragePhp , ?string $ coverageText , ?bool $ coverageTextShowUncoveredFiles , ?bool $ coverageTextShowOnlySummary , ?string $ coverageXml , ?bool $ debug , ?int $ defaultTimeLimit , ?bool $ disableCodeCoverageIgnore , ?bool $ disallowTestOutput , ?bool $ disallowTodoAnnotatedTests , ?bool $ enforceTimeLimit , ?array $ excludeGroups , ?int $ executionOrder , ?int $ executionOrderDefects , ?array $ extensions , ?array $ unavailableExtensions , ?bool $ failOnIncomplete , ?bool $ failOnRisky , ?bool $ failOnSkipped , ?bool $ failOnWarning , ?string $ filter , ?bool $ generateConfiguration , ?array $ groups , ?bool $ help , ?string $ includePath , ?array $ iniSettings , ?string $ junitLogfile , ?bool $ listGroups , ?bool $ listSuites , ?bool $ listTests , ?string $ listTestsXml , ?string $ loader , ?bool $ noCoverage , ?bool $ noExtensions , ?bool $ noInteraction , ?bool $ noLogging , ?string $ printer , ?bool $ processIsolation , ?int $ randomOrderSeed , ?int $ repeat , ?bool $ reportUselessTests , ?bool $ resolveDependencies , ?bool $ reverseList , ?bool $ stderr , ?bool $ strictCoverage , ?bool $ stopOnDefect , ?bool $ stopOnError , ?bool $ stopOnFailure , ?bool $ stopOnIncomplete , ?bool $ stopOnRisky , ?bool $ stopOnSkipped , ?bool $ stopOnWarning , ?string $ teamcityLogfile , ?array $ testdoxExcludeGroups , ?array $ testdoxGroups , ?string $ testdoxHtmlFile , ?string $ testdoxTextFile , ?string $ testdoxXmlFile , ?array $ testSuffixes , ?string $ testSuite , ?array $ unrecognizedOptions , ?string $ unrecognizedOrderBy , ?bool $ useDefaultConfiguration , ?bool $ verbose , ?bool $ version , ?array $ whitelist , ?string $ xdebugFilterFile )
438+ public function __construct (?string $ argument , ?string $ atLeastVersion , ?bool $ backupGlobals , ?bool $ backupStaticAttributes , ?bool $ beStrictAboutChangesToGlobalState , ?bool $ beStrictAboutResourceUsageDuringSmallTests , ?string $ bootstrap , ?bool $ cacheResult , ?string $ cacheResultFile , ?bool $ checkVersion , ?string $ colors , $ columns , ?string $ configuration , ?string $ coverageClover , ?string $ coverageCrap4J , ?string $ coverageHtml , ?string $ coveragePhp , ?string $ coverageText , ?bool $ coverageTextShowUncoveredFiles , ?bool $ coverageTextShowOnlySummary , ?string $ coverageXml , ?bool $ debug , ?int $ defaultTimeLimit , ?bool $ disableCodeCoverageIgnore , ?bool $ disallowTestOutput , ?bool $ disallowTodoAnnotatedTests , ?bool $ enforceTimeLimit , ?array $ excludeGroups , ?int $ executionOrder , ?int $ executionOrderDefects , ?array $ extensions , ?array $ unavailableExtensions , ?bool $ failOnIncomplete , ?bool $ failOnRisky , ?bool $ failOnSkipped , ?bool $ failOnWarning , ?string $ filter , ?bool $ generateConfiguration , ?array $ groups , ?bool $ help , ?string $ includePath , ?array $ iniSettings , ?string $ junitLogfile , ?bool $ listGroups , ?bool $ listSuites , ?bool $ listTests , ?string $ listTestsXml , ?string $ loader , ?bool $ noCoverage , ?bool $ noExtensions , ?bool $ noInteraction , ?bool $ noLogging , ?string $ printer , ?bool $ processIsolation , ?int $ randomOrderSeed , ?int $ repeat , ?bool $ reportUselessTests , ?bool $ resolveDependencies , ?bool $ reverseList , ?bool $ stderr , ?bool $ strictCoverage , ?bool $ stopOnDefect , ?bool $ stopOnError , ?bool $ stopOnFailure , ?bool $ stopOnIncomplete , ?bool $ stopOnRisky , ?bool $ stopOnSkipped , ?bool $ stopOnWarning , ?string $ teamcityLogfile , ?array $ testdoxExcludeGroups , ?array $ testdoxGroups , ?string $ testdoxHtmlFile , ?string $ testdoxTextFile , ?string $ testdoxXmlFile , ?array $ testSuffixes , ?string $ testSuite , ?array $ unrecognizedOptions , ?string $ unrecognizedOrderBy , ?bool $ useDefaultConfiguration , ?bool $ verbose , ?bool $ version , ?array $ coverageFilter , ?string $ xdebugFilterFile )
439439 {
440440 $ this ->argument = $ argument ;
441441 $ this ->atLeastVersion = $ atLeastVersion ;
@@ -450,6 +450,7 @@ public function __construct(?string $argument, ?string $atLeastVersion, ?bool $b
450450 $ this ->colors = $ colors ;
451451 $ this ->columns = $ columns ;
452452 $ this ->configuration = $ configuration ;
453+ $ this ->coverageFilter = $ coverageFilter ;
453454 $ this ->coverageClover = $ coverageClover ;
454455 $ this ->coverageCrap4J = $ coverageCrap4J ;
455456 $ this ->coverageHtml = $ coverageHtml ;
@@ -518,7 +519,6 @@ public function __construct(?string $argument, ?string $atLeastVersion, ?bool $b
518519 $ this ->useDefaultConfiguration = $ useDefaultConfiguration ;
519520 $ this ->verbose = $ verbose ;
520521 $ this ->version = $ version ;
521- $ this ->whitelist = $ whitelist ;
522522 $ this ->xdebugFilterFile = $ xdebugFilterFile ;
523523 }
524524
@@ -704,6 +704,20 @@ public function configuration(): string
704704 return $ this ->configuration ;
705705 }
706706
707+ public function hasCoverageFilter (): bool
708+ {
709+ return $ this ->coverageFilter !== null ;
710+ }
711+
712+ public function coverageFilter (): array
713+ {
714+ if ($ this ->coverageFilter === null ) {
715+ throw new Exception ;
716+ }
717+
718+ return $ this ->coverageFilter ;
719+ }
720+
707721 public function hasCoverageClover (): bool
708722 {
709723 return $ this ->coverageClover !== null ;
@@ -1656,20 +1670,6 @@ public function version(): bool
16561670 return $ this ->version ;
16571671 }
16581672
1659- public function hasWhitelist (): bool
1660- {
1661- return $ this ->whitelist !== null ;
1662- }
1663-
1664- public function whitelist (): array
1665- {
1666- if ($ this ->whitelist === null ) {
1667- throw new Exception ;
1668- }
1669-
1670- return $ this ->whitelist ;
1671- }
1672-
16731673 public function hasXdebugFilterFile (): bool
16741674 {
16751675 return $ this ->xdebugFilterFile !== null ;
0 commit comments