File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments