Skip to content

Commit 4c8a107

Browse files
committed
Fixed TestHelper return code when a skipped tests occurs along passed test.
1 parent a12e0e0 commit 4c8a107

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/lib/Helper/TestHelper.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ public function terminateTest(): void
264264
exit(1);
265265
}
266266

267-
if (!$this->numOfSkippedTests && $this->numOfPassedTests) {
268-
exit(0);
267+
if ($this->numOfSkippedTests) {
268+
exit($this->numOfPassedTests ? 0 : 2);
269269
}
270270

271-
exit(2);
271+
exit(0);
272272
}
273273

274274
/**

0 commit comments

Comments
 (0)