65
65
private ?bool $ failOnDeprecation ;
66
66
private ?bool $ failOnPhpunitDeprecation ;
67
67
private ?bool $ failOnPhpunitNotice ;
68
+ private ?bool $ failOnPhpunitWarning ;
68
69
private ?bool $ failOnEmptyTestSuite ;
69
70
private ?bool $ failOnIncomplete ;
70
71
private ?bool $ failOnNotice ;
74
75
private ?bool $ doNotFailOnDeprecation ;
75
76
private ?bool $ doNotFailOnPhpunitDeprecation ;
76
77
private ?bool $ doNotFailOnPhpunitNotice ;
78
+ private ?bool $ doNotFailOnPhpunitWarning ;
77
79
private ?bool $ doNotFailOnEmptyTestSuite ;
78
80
private ?bool $ doNotFailOnIncomplete ;
79
81
private ?bool $ doNotFailOnNotice ;
190
192
* @param ?non-empty-list<non-empty-string> $coverageFilter
191
193
* @param ?non-empty-list<non-empty-string> $extensions
192
194
*/
193
- public function __construct (array $ arguments , ?string $ atLeastVersion , ?bool $ backupGlobals , ?bool $ backupStaticProperties , ?bool $ beStrictAboutChangesToGlobalState , ?string $ bootstrap , ?string $ cacheDirectory , ?bool $ cacheResult , bool $ checkVersion , ?string $ colors , null |int |string $ columns , ?string $ configurationFile , ?string $ coverageClover , ?string $ coverageCobertura , ?string $ coverageCrap4J , ?string $ coverageHtml , ?string $ coverageOpenClover , ?string $ coveragePhp , ?string $ coverageText , ?bool $ coverageTextShowUncoveredFiles , ?bool $ coverageTextShowOnlySummary , ?string $ coverageXml , ?bool $ pathCoverage , bool $ warmCoverageCache , ?int $ defaultTimeLimit , ?bool $ disableCodeCoverageIgnore , ?bool $ disallowTestOutput , ?bool $ enforceTimeLimit , ?array $ excludeGroups , ?int $ executionOrder , ?int $ executionOrderDefects , ?bool $ failOnAllIssues , ?bool $ failOnDeprecation , ?bool $ failOnPhpunitDeprecation , ?bool $ failOnPhpunitNotice , ?bool $ failOnEmptyTestSuite , ?bool $ failOnIncomplete , ?bool $ failOnNotice , ?bool $ failOnRisky , ?bool $ failOnSkipped , ?bool $ failOnWarning , ?bool $ doNotFailOnDeprecation , ?bool $ doNotFailOnPhpunitDeprecation , ?bool $ doNotFailOnPhpunitNotice , ?bool $ doNotFailOnEmptyTestSuite , ?bool $ doNotFailOnIncomplete , ?bool $ doNotFailOnNotice , ?bool $ doNotFailOnRisky , ?bool $ doNotFailOnSkipped , ?bool $ doNotFailOnWarning , ?bool $ stopOnDefect , ?bool $ stopOnDeprecation , ?string $ specificDeprecationToStopOn , ?bool $ stopOnError , ?bool $ stopOnFailure , ?bool $ stopOnIncomplete , ?bool $ stopOnNotice , ?bool $ stopOnRisky , ?bool $ stopOnSkipped , ?bool $ stopOnWarning , ?string $ filter , ?string $ excludeFilter , ?string $ generateBaseline , ?string $ useBaseline , bool $ ignoreBaseline , bool $ generateConfiguration , bool $ migrateConfiguration , ?array $ groups , ?array $ testsCovering , ?array $ testsUsing , ?array $ testsRequiringPhpExtension , bool $ help , ?string $ includePath , ?array $ iniSettings , ?string $ junitLogfile , ?string $ otrLogfile , bool $ listGroups , bool $ listSuites , bool $ listTestFiles , bool $ listTests , ?string $ listTestsXml , ?bool $ noCoverage , ?bool $ noExtensions , ?bool $ noOutput , ?bool $ noProgress , ?bool $ noResults , ?bool $ noLogging , ?bool $ processIsolation , ?int $ randomOrderSeed , ?bool $ reportUselessTests , ?bool $ resolveDependencies , ?bool $ reverseList , ?bool $ stderr , ?bool $ strictCoverage , ?string $ teamcityLogfile , ?string $ testdoxHtmlFile , ?string $ testdoxTextFile , ?array $ testSuffixes , ?string $ testSuite , ?string $ excludeTestSuite , bool $ useDefaultConfiguration , ?bool $ displayDetailsOnAllIssues , ?bool $ displayDetailsOnIncompleteTests , ?bool $ displayDetailsOnSkippedTests , ?bool $ displayDetailsOnTestsThatTriggerDeprecations , ?bool $ displayDetailsOnPhpunitDeprecations , ?bool $ displayDetailsOnPhpunitNotices , ?bool $ displayDetailsOnTestsThatTriggerErrors , ?bool $ displayDetailsOnTestsThatTriggerNotices , ?bool $ displayDetailsOnTestsThatTriggerWarnings , bool $ version , ?array $ coverageFilter , ?string $ logEventsText , ?string $ logEventsVerboseText , ?bool $ printerTeamCity , ?bool $ testdoxPrinter , ?bool $ testdoxPrinterSummary , bool $ debug , bool $ withTelemetry , ?array $ extensions )
195
+ public function __construct (array $ arguments , ?string $ atLeastVersion , ?bool $ backupGlobals , ?bool $ backupStaticProperties , ?bool $ beStrictAboutChangesToGlobalState , ?string $ bootstrap , ?string $ cacheDirectory , ?bool $ cacheResult , bool $ checkVersion , ?string $ colors , null |int |string $ columns , ?string $ configurationFile , ?string $ coverageClover , ?string $ coverageCobertura , ?string $ coverageCrap4J , ?string $ coverageHtml , ?string $ coverageOpenClover , ?string $ coveragePhp , ?string $ coverageText , ?bool $ coverageTextShowUncoveredFiles , ?bool $ coverageTextShowOnlySummary , ?string $ coverageXml , ?bool $ pathCoverage , bool $ warmCoverageCache , ?int $ defaultTimeLimit , ?bool $ disableCodeCoverageIgnore , ?bool $ disallowTestOutput , ?bool $ enforceTimeLimit , ?array $ excludeGroups , ?int $ executionOrder , ?int $ executionOrderDefects , ?bool $ failOnAllIssues , ?bool $ failOnDeprecation , ?bool $ failOnPhpunitDeprecation , ?bool $ failOnPhpunitNotice , ?bool $ failOnPhpunitWarning , ?bool $ failOnEmptyTestSuite , ?bool $ failOnIncomplete , ?bool $ failOnNotice , ?bool $ failOnRisky , ?bool $ failOnSkipped , ?bool $ failOnWarning , ?bool $ doNotFailOnDeprecation , ?bool $ doNotFailOnPhpunitDeprecation , ?bool $ doNotFailOnPhpunitNotice , ?bool $ doNotFailOnPhpunitWarning , ?bool $ doNotFailOnEmptyTestSuite , ?bool $ doNotFailOnIncomplete , ?bool $ doNotFailOnNotice , ?bool $ doNotFailOnRisky , ?bool $ doNotFailOnSkipped , ?bool $ doNotFailOnWarning , ?bool $ stopOnDefect , ?bool $ stopOnDeprecation , ?string $ specificDeprecationToStopOn , ?bool $ stopOnError , ?bool $ stopOnFailure , ?bool $ stopOnIncomplete , ?bool $ stopOnNotice , ?bool $ stopOnRisky , ?bool $ stopOnSkipped , ?bool $ stopOnWarning , ?string $ filter , ?string $ excludeFilter , ?string $ generateBaseline , ?string $ useBaseline , bool $ ignoreBaseline , bool $ generateConfiguration , bool $ migrateConfiguration , ?array $ groups , ?array $ testsCovering , ?array $ testsUsing , ?array $ testsRequiringPhpExtension , bool $ help , ?string $ includePath , ?array $ iniSettings , ?string $ junitLogfile , ?string $ otrLogfile , bool $ listGroups , bool $ listSuites , bool $ listTestFiles , bool $ listTests , ?string $ listTestsXml , ?bool $ noCoverage , ?bool $ noExtensions , ?bool $ noOutput , ?bool $ noProgress , ?bool $ noResults , ?bool $ noLogging , ?bool $ processIsolation , ?int $ randomOrderSeed , ?bool $ reportUselessTests , ?bool $ resolveDependencies , ?bool $ reverseList , ?bool $ stderr , ?bool $ strictCoverage , ?string $ teamcityLogfile , ?string $ testdoxHtmlFile , ?string $ testdoxTextFile , ?array $ testSuffixes , ?string $ testSuite , ?string $ excludeTestSuite , bool $ useDefaultConfiguration , ?bool $ displayDetailsOnAllIssues , ?bool $ displayDetailsOnIncompleteTests , ?bool $ displayDetailsOnSkippedTests , ?bool $ displayDetailsOnTestsThatTriggerDeprecations , ?bool $ displayDetailsOnPhpunitDeprecations , ?bool $ displayDetailsOnPhpunitNotices , ?bool $ displayDetailsOnTestsThatTriggerErrors , ?bool $ displayDetailsOnTestsThatTriggerNotices , ?bool $ displayDetailsOnTestsThatTriggerWarnings , bool $ version , ?array $ coverageFilter , ?string $ logEventsText , ?string $ logEventsVerboseText , ?bool $ printerTeamCity , ?bool $ testdoxPrinter , ?bool $ testdoxPrinterSummary , bool $ debug , bool $ withTelemetry , ?array $ extensions )
194
196
{
195
197
$ this ->arguments = $ arguments ;
196
198
$ this ->atLeastVersion = $ atLeastVersion ;
@@ -228,6 +230,7 @@ public function __construct(array $arguments, ?string $atLeastVersion, ?bool $ba
228
230
$ this ->failOnDeprecation = $ failOnDeprecation ;
229
231
$ this ->failOnPhpunitDeprecation = $ failOnPhpunitDeprecation ;
230
232
$ this ->failOnPhpunitNotice = $ failOnPhpunitNotice ;
233
+ $ this ->failOnPhpunitWarning = $ failOnPhpunitWarning ;
231
234
$ this ->failOnEmptyTestSuite = $ failOnEmptyTestSuite ;
232
235
$ this ->failOnIncomplete = $ failOnIncomplete ;
233
236
$ this ->failOnNotice = $ failOnNotice ;
@@ -237,6 +240,7 @@ public function __construct(array $arguments, ?string $atLeastVersion, ?bool $ba
237
240
$ this ->doNotFailOnDeprecation = $ doNotFailOnDeprecation ;
238
241
$ this ->doNotFailOnPhpunitDeprecation = $ doNotFailOnPhpunitDeprecation ;
239
242
$ this ->doNotFailOnPhpunitNotice = $ doNotFailOnPhpunitNotice ;
243
+ $ this ->doNotFailOnPhpunitWarning = $ doNotFailOnPhpunitWarning ;
240
244
$ this ->doNotFailOnEmptyTestSuite = $ doNotFailOnEmptyTestSuite ;
241
245
$ this ->doNotFailOnIncomplete = $ doNotFailOnIncomplete ;
242
246
$ this ->doNotFailOnNotice = $ doNotFailOnNotice ;
@@ -996,6 +1000,26 @@ public function failOnPhpunitNotice(): bool
996
1000
return $ this ->failOnPhpunitNotice ;
997
1001
}
998
1002
1003
+ /**
1004
+ * @phpstan-assert-if-true !null $this->failOnPhpunitWarning
1005
+ */
1006
+ public function hasFailOnPhpunitWarning (): bool
1007
+ {
1008
+ return $ this ->failOnPhpunitWarning !== null ;
1009
+ }
1010
+
1011
+ /**
1012
+ * @throws Exception
1013
+ */
1014
+ public function failOnPhpunitWarning (): bool
1015
+ {
1016
+ if (!$ this ->hasFailOnPhpunitWarning ()) {
1017
+ throw new Exception ;
1018
+ }
1019
+
1020
+ return $ this ->failOnPhpunitWarning ;
1021
+ }
1022
+
999
1023
/**
1000
1024
* @phpstan-assert-if-true !null $this->failOnEmptyTestSuite
1001
1025
*/
@@ -1176,6 +1200,26 @@ public function doNotFailOnPhpunitNotice(): bool
1176
1200
return $ this ->doNotFailOnPhpunitNotice ;
1177
1201
}
1178
1202
1203
+ /**
1204
+ * @phpstan-assert-if-true !null $this->doNotFailOnPhpunitWarning
1205
+ */
1206
+ public function hasDoNotFailOnPhpunitWarning (): bool
1207
+ {
1208
+ return $ this ->doNotFailOnPhpunitWarning !== null ;
1209
+ }
1210
+
1211
+ /**
1212
+ * @throws Exception
1213
+ */
1214
+ public function doNotFailOnPhpunitWarning (): bool
1215
+ {
1216
+ if (!$ this ->hasDoNotFailOnPhpunitWarning ()) {
1217
+ throw new Exception ;
1218
+ }
1219
+
1220
+ return $ this ->doNotFailOnPhpunitWarning ;
1221
+ }
1222
+
1179
1223
/**
1180
1224
* @phpstan-assert-if-true !null $this->doNotFailOnEmptyTestSuite
1181
1225
*/
0 commit comments