File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,11 @@ public function testFailingTests(UnifiedTestCase $test): void
248
248
try {
249
249
self ::$ runner ->run ($ test );
250
250
} catch (Exception $ e ) {
251
+ // Respect skipped tests (e.g. evaluated runOnRequirements)
252
+ if ($ e instanceof SkippedTest) {
253
+ throw $ e ;
254
+ }
255
+
251
256
/* As is done in PHPUnit\Framework\TestCase::runBare(), exceptions
252
257
* other than a select few will indicate a test failure. We cannot
253
258
* call TestCase::hasFailed() because runBare() has yet to catch the
@@ -256,7 +261,7 @@ public function testFailingTests(UnifiedTestCase $test): void
256
261
* IncompleteTest is intentionally omitted as it is thrown for an
257
262
* incompatible schema. This differs from PHPUnit's internal logic.
258
263
*/
259
- $ failed = ! ($ e instanceof SkippedTest || $ e instanceof Warning);
264
+ $ failed = ! ($ e instanceof Warning);
260
265
}
261
266
262
267
// phpcs:enable
You can’t perform that action at this time.
0 commit comments