@@ -54,6 +54,7 @@ final class Configuration
54
54
private readonly ?array $ excludeGroups ;
55
55
private readonly ?int $ executionOrder ;
56
56
private readonly ?int $ executionOrderDefects ;
57
+ private readonly ?bool $ failOnAllIssues ;
57
58
private readonly ?bool $ failOnDeprecation ;
58
59
private readonly ?bool $ failOnPhpunitDeprecation ;
59
60
private readonly ?bool $ failOnEmptyTestSuite ;
@@ -114,6 +115,7 @@ final class Configuration
114
115
private readonly ?string $ testSuite ;
115
116
private readonly ?string $ excludeTestSuite ;
116
117
private readonly bool $ useDefaultConfiguration ;
118
+ private readonly ?bool $ displayDetailsOnAllIssues ;
117
119
private readonly ?bool $ displayDetailsOnIncompleteTests ;
118
120
private readonly ?bool $ displayDetailsOnSkippedTests ;
119
121
private readonly ?bool $ displayDetailsOnTestsThatTriggerDeprecations ;
@@ -130,7 +132,7 @@ final class Configuration
130
132
* @psalm-param list<non-empty-string> $arguments
131
133
* @psalm-param ?non-empty-list<non-empty-string> $testSuffixes
132
134
*/
133
- public function __construct (array $ arguments , ?string $ atLeastVersion , ?bool $ backupGlobals , ?bool $ backupStaticProperties , ?bool $ beStrictAboutChangesToGlobalState , ?string $ bootstrap , ?string $ cacheDirectory , ?bool $ cacheResult , ?string $ cacheResultFile , bool $ checkVersion , ?string $ colors , null |int |string $ columns , ?string $ configurationFile , ?string $ coverageClover , ?string $ coverageCobertura , ?string $ coverageCrap4J , ?string $ coverageHtml , ?string $ coveragePhp , ?string $ coverageText , ?bool $ coverageTextShowUncoveredFiles , ?bool $ coverageTextShowOnlySummary , ?string $ coverageXml , ?bool $ pathCoverage , ?string $ coverageCacheDirectory , bool $ warmCoverageCache , ?int $ defaultTimeLimit , ?bool $ disableCodeCoverageIgnore , ?bool $ disallowTestOutput , ?bool $ enforceTimeLimit , ?array $ excludeGroups , ?int $ executionOrder , ?int $ executionOrderDefects , ?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 , ?string $ filter , ?string $ generateBaseline , ?string $ useBaseline , bool $ ignoreBaseline , bool $ generateConfiguration , bool $ migrateConfiguration , ?array $ groups , ?array $ testsCovering , ?array $ testsUsing , bool $ help , ?string $ includePath , ?array $ iniSettings , ?string $ junitLogfile , bool $ listGroups , bool $ listSuites , 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 $ displayDetailsOnIncompleteTests , ?bool $ displayDetailsOnSkippedTests , ?bool $ displayDetailsOnTestsThatTriggerDeprecations , ?bool $ displayDetailsOnPhpunitDeprecations , ?bool $ displayDetailsOnTestsThatTriggerErrors , ?bool $ displayDetailsOnTestsThatTriggerNotices , ?bool $ displayDetailsOnTestsThatTriggerWarnings , bool $ version , ?array $ coverageFilter , ?string $ logEventsText , ?string $ logEventsVerboseText , ?bool $ printerTeamCity , ?bool $ printerTestDox , bool $ debug )
135
+ public function __construct (array $ arguments , ?string $ atLeastVersion , ?bool $ backupGlobals , ?bool $ backupStaticProperties , ?bool $ beStrictAboutChangesToGlobalState , ?string $ bootstrap , ?string $ cacheDirectory , ?bool $ cacheResult , ?string $ cacheResultFile , bool $ checkVersion , ?string $ colors , null |int |string $ columns , ?string $ configurationFile , ?string $ coverageClover , ?string $ coverageCobertura , ?string $ coverageCrap4J , ?string $ coverageHtml , ?string $ coveragePhp , ?string $ coverageText , ?bool $ coverageTextShowUncoveredFiles , ?bool $ coverageTextShowOnlySummary , ?string $ coverageXml , ?bool $ pathCoverage , ?string $ coverageCacheDirectory , bool $ warmCoverageCache , ?int $ defaultTimeLimit , ?bool $ disableCodeCoverageIgnore , ?bool $ disallowTestOutput , ?bool $ enforceTimeLimit , ?array $ excludeGroups , ?int $ executionOrder , ?int $ executionOrderDefects , ?bool $ failOnAllIssues , ?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 , ?string $ filter , ?string $ generateBaseline , ?string $ useBaseline , bool $ ignoreBaseline , bool $ generateConfiguration , bool $ migrateConfiguration , ?array $ groups , ?array $ testsCovering , ?array $ testsUsing , bool $ help , ?string $ includePath , ?array $ iniSettings , ?string $ junitLogfile , bool $ listGroups , bool $ listSuites , 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 $ displayDetailsOnTestsThatTriggerErrors , ?bool $ displayDetailsOnTestsThatTriggerNotices , ?bool $ displayDetailsOnTestsThatTriggerWarnings , bool $ version , ?array $ coverageFilter , ?string $ logEventsText , ?string $ logEventsVerboseText , ?bool $ printerTeamCity , ?bool $ printerTestDox , bool $ debug )
134
136
{
135
137
$ this ->arguments = $ arguments ;
136
138
$ this ->atLeastVersion = $ atLeastVersion ;
@@ -165,6 +167,7 @@ public function __construct(array $arguments, ?string $atLeastVersion, ?bool $ba
165
167
$ this ->excludeGroups = $ excludeGroups ;
166
168
$ this ->executionOrder = $ executionOrder ;
167
169
$ this ->executionOrderDefects = $ executionOrderDefects ;
170
+ $ this ->failOnAllIssues = $ failOnAllIssues ;
168
171
$ this ->failOnDeprecation = $ failOnDeprecation ;
169
172
$ this ->failOnPhpunitDeprecation = $ failOnPhpunitDeprecation ;
170
173
$ this ->failOnEmptyTestSuite = $ failOnEmptyTestSuite ;
@@ -219,6 +222,7 @@ public function __construct(array $arguments, ?string $atLeastVersion, ?bool $ba
219
222
$ this ->testSuite = $ testSuite ;
220
223
$ this ->excludeTestSuite = $ excludeTestSuite ;
221
224
$ this ->useDefaultConfiguration = $ useDefaultConfiguration ;
225
+ $ this ->displayDetailsOnAllIssues = $ displayDetailsOnAllIssues ;
222
226
$ this ->displayDetailsOnIncompleteTests = $ displayDetailsOnIncompleteTests ;
223
227
$ this ->displayDetailsOnSkippedTests = $ displayDetailsOnSkippedTests ;
224
228
$ this ->displayDetailsOnTestsThatTriggerDeprecations = $ displayDetailsOnTestsThatTriggerDeprecations ;
@@ -880,6 +884,26 @@ public function failOnDeprecation(): bool
880
884
return $ this ->failOnDeprecation ;
881
885
}
882
886
887
+ /**
888
+ * @psalm-assert-if-true !null $this->failOnAllIssues
889
+ */
890
+ public function hasFailOnAllIssues (): bool
891
+ {
892
+ return $ this ->failOnAllIssues !== null ;
893
+ }
894
+
895
+ /**
896
+ * @throws Exception
897
+ */
898
+ public function failOnAllIssues (): bool
899
+ {
900
+ if (!$ this ->hasFailOnAllIssues ()) {
901
+ throw new Exception ;
902
+ }
903
+
904
+ return $ this ->failOnAllIssues ;
905
+ }
906
+
883
907
/**
884
908
* @psalm-assert-if-true !null $this->failOnPhpunitDeprecation
885
909
*/
@@ -1862,6 +1886,26 @@ public function useDefaultConfiguration(): bool
1862
1886
return $ this ->useDefaultConfiguration ;
1863
1887
}
1864
1888
1889
+ /**
1890
+ * @psalm-assert-if-true !null $this->displayDetailsOnAllIssues
1891
+ */
1892
+ public function hasDisplayDetailsOnAllIssues (): bool
1893
+ {
1894
+ return $ this ->displayDetailsOnAllIssues !== null ;
1895
+ }
1896
+
1897
+ /**
1898
+ * @throws Exception
1899
+ */
1900
+ public function displayDetailsOnAllIssues (): bool
1901
+ {
1902
+ if (!$ this ->hasDisplayDetailsOnAllIssues ()) {
1903
+ throw new Exception ;
1904
+ }
1905
+
1906
+ return $ this ->displayDetailsOnAllIssues ;
1907
+ }
1908
+
1865
1909
/**
1866
1910
* @psalm-assert-if-true !null $this->displayDetailsOnIncompleteTests
1867
1911
*/
0 commit comments