Skip to content

Commit 1618926

Browse files
committed
fixup! fix(test): exit code of lime test
1 parent f9dc11f commit 1618926

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/vendor/lime/lime.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class lime_test
2727

2828
private const STATE_PASS = 0;
2929
private const STATE_FAIL = 1;
30+
private const STATE_PLAN_NOT_FOLLOW = 2;
3031

3132
private static $instanceCount = 0;
3233
private static $finalState = self::STATE_PASS;
@@ -161,7 +162,7 @@ private function determineAndPrintStateOfTestSuite(): int
161162
}
162163

163164
if (self::STATE_FAIL === $planState) {
164-
return self::STATE_FAIL;
165+
return self::STATE_PLAN_NOT_FOLLOW;
165166
}
166167

167168
$this->output->green_bar("# Looks like everything went fine.");
@@ -215,6 +216,8 @@ private function determineExitCodeFromState(int $state): int
215216
switch ($state) {
216217
case self::STATE_PASS:
217218
return 0;
219+
case self::STATE_PLAN_NOT_FOLLOW:
220+
return 255;
218221
default:
219222
return 1;
220223
}

0 commit comments

Comments
 (0)