@@ -54,6 +54,7 @@ final class Configuration
5454 private readonly bool $ ignoreDeprecatedCodeUnitsFromCodeCoverage ;
5555 private readonly bool $ disableCodeCoverageIgnore ;
5656 private readonly bool $ failOnDeprecation ;
57+ private readonly bool $ failOnPhpunitDeprecation ;
5758 private readonly bool $ failOnEmptyTestSuite ;
5859 private readonly bool $ failOnIncomplete ;
5960 private readonly bool $ failOnNotice ;
@@ -146,7 +147,7 @@ final class Configuration
146147 * @psalm-param non-empty-list<non-empty-string> $testSuffixes
147148 * @psalm-param list<array{className: class-string, parameters: array<string, string>}> $extensionBootstrappers
148149 */
149- public function __construct (array $ cliArguments , ?string $ configurationFile , ?string $ bootstrap , bool $ cacheResult , ?string $ cacheDirectory , ?string $ coverageCacheDirectory , Source $ source , 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 $ coverageHtmlCustomCssFile , ?string $ coveragePhp , ?string $ coverageText , bool $ coverageTextShowUncoveredFiles , bool $ coverageTextShowOnlySummary , ?string $ coverageXml , bool $ pathCoverage , bool $ ignoreDeprecatedCodeUnitsFromCodeCoverage , bool $ disableCodeCoverageIgnore , bool $ failOnDeprecation , bool $ failOnEmptyTestSuite , bool $ failOnIncomplete , bool $ failOnNotice , bool $ failOnRisky , bool $ failOnSkipped , bool $ failOnWarning , bool $ stopOnDefect , bool $ stopOnDeprecation , bool $ stopOnError , bool $ stopOnFailure , bool $ stopOnIncomplete , bool $ stopOnNotice , bool $ stopOnRisky , bool $ stopOnSkipped , bool $ stopOnWarning , bool $ outputToStandardErrorStream , int |string $ columns , bool $ noExtensions , ?string $ pharExtensionDirectory , array $ extensionBootstrappers , bool $ backupGlobals , bool $ backupStaticProperties , bool $ beStrictAboutChangesToGlobalState , bool $ colors , bool $ processIsolation , bool $ enforceTimeLimit , int $ defaultTimeLimit , int $ timeoutForSmallTests , int $ timeoutForMediumTests , int $ timeoutForLargeTests , bool $ reportUselessTests , bool $ strictCoverage , bool $ disallowTestOutput , bool $ displayDetailsOnIncompleteTests , bool $ displayDetailsOnSkippedTests , bool $ displayDetailsOnTestsThatTriggerDeprecations , bool $ displayDetailsOnTestsThatTriggerErrors , bool $ displayDetailsOnTestsThatTriggerNotices , bool $ displayDetailsOnTestsThatTriggerWarnings , bool $ reverseDefectList , bool $ requireCoverageMetadata , bool $ registerMockObjectsFromTestArgumentsRecursively , bool $ noProgress , bool $ noResults , bool $ noOutput , int $ executionOrder , int $ executionOrderDefects , bool $ resolveDependencies , ?string $ logfileTeamcity , ?string $ logfileJunit , ?string $ logfileTestdoxHtml , ?string $ logfileTestdoxText , ?string $ logEventsText , ?string $ logEventsVerboseText , bool $ teamCityOutput , bool $ testDoxOutput , ?array $ testsCovering , ?array $ testsUsing , ?string $ filter , ?array $ groups , ?array $ excludeGroups , int $ randomOrderSeed , bool $ includeUncoveredFiles , TestSuiteCollection $ testSuite , string $ includeTestSuite , string $ excludeTestSuite , ?string $ defaultTestSuite , array $ testSuffixes , Php $ php , bool $ controlGarbageCollector , int $ numberOfTestsBeforeGarbageCollection , ?string $ generateBaseline , bool $ debug )
150+ public function __construct (array $ cliArguments , ?string $ configurationFile , ?string $ bootstrap , bool $ cacheResult , ?string $ cacheDirectory , ?string $ coverageCacheDirectory , Source $ source , 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 $ coverageHtmlCustomCssFile , ?string $ coveragePhp , ?string $ coverageText , bool $ coverageTextShowUncoveredFiles , bool $ coverageTextShowOnlySummary , ?string $ coverageXml , bool $ pathCoverage , bool $ ignoreDeprecatedCodeUnitsFromCodeCoverage , bool $ disableCodeCoverageIgnore , bool $ failOnDeprecation , bool $ failOnPhpunitDeprecation , bool $ failOnEmptyTestSuite , bool $ failOnIncomplete , bool $ failOnNotice , bool $ failOnRisky , bool $ failOnSkipped , bool $ failOnWarning , bool $ stopOnDefect , bool $ stopOnDeprecation , bool $ stopOnError , bool $ stopOnFailure , bool $ stopOnIncomplete , bool $ stopOnNotice , bool $ stopOnRisky , bool $ stopOnSkipped , bool $ stopOnWarning , bool $ outputToStandardErrorStream , int |string $ columns , bool $ noExtensions , ?string $ pharExtensionDirectory , array $ extensionBootstrappers , bool $ backupGlobals , bool $ backupStaticProperties , bool $ beStrictAboutChangesToGlobalState , bool $ colors , bool $ processIsolation , bool $ enforceTimeLimit , int $ defaultTimeLimit , int $ timeoutForSmallTests , int $ timeoutForMediumTests , int $ timeoutForLargeTests , bool $ reportUselessTests , bool $ strictCoverage , bool $ disallowTestOutput , bool $ displayDetailsOnIncompleteTests , bool $ displayDetailsOnSkippedTests , bool $ displayDetailsOnTestsThatTriggerDeprecations , bool $ displayDetailsOnTestsThatTriggerErrors , bool $ displayDetailsOnTestsThatTriggerNotices , bool $ displayDetailsOnTestsThatTriggerWarnings , bool $ reverseDefectList , bool $ requireCoverageMetadata , bool $ registerMockObjectsFromTestArgumentsRecursively , bool $ noProgress , bool $ noResults , bool $ noOutput , int $ executionOrder , int $ executionOrderDefects , bool $ resolveDependencies , ?string $ logfileTeamcity , ?string $ logfileJunit , ?string $ logfileTestdoxHtml , ?string $ logfileTestdoxText , ?string $ logEventsText , ?string $ logEventsVerboseText , bool $ teamCityOutput , bool $ testDoxOutput , ?array $ testsCovering , ?array $ testsUsing , ?string $ filter , ?array $ groups , ?array $ excludeGroups , int $ randomOrderSeed , bool $ includeUncoveredFiles , TestSuiteCollection $ testSuite , string $ includeTestSuite , string $ excludeTestSuite , ?string $ defaultTestSuite , array $ testSuffixes , Php $ php , bool $ controlGarbageCollector , int $ numberOfTestsBeforeGarbageCollection , ?string $ generateBaseline , bool $ debug )
150151 {
151152 $ this ->cliArguments = $ cliArguments ;
152153 $ this ->configurationFile = $ configurationFile ;
@@ -178,6 +179,7 @@ public function __construct(array $cliArguments, ?string $configurationFile, ?st
178179 $ this ->ignoreDeprecatedCodeUnitsFromCodeCoverage = $ ignoreDeprecatedCodeUnitsFromCodeCoverage ;
179180 $ this ->disableCodeCoverageIgnore = $ disableCodeCoverageIgnore ;
180181 $ this ->failOnDeprecation = $ failOnDeprecation ;
182+ $ this ->failOnPhpunitDeprecation = $ failOnPhpunitDeprecation ;
181183 $ this ->failOnEmptyTestSuite = $ failOnEmptyTestSuite ;
182184 $ this ->failOnIncomplete = $ failOnIncomplete ;
183185 $ this ->failOnNotice = $ failOnNotice ;
@@ -695,6 +697,11 @@ public function failOnDeprecation(): bool
695697 return $ this ->failOnDeprecation ;
696698 }
697699
700+ public function failOnPhpunitDeprecation (): bool
701+ {
702+ return $ this ->failOnPhpunitDeprecation ;
703+ }
704+
698705 public function failOnEmptyTestSuite (): bool
699706 {
700707 return $ this ->failOnEmptyTestSuite ;
0 commit comments