Skip to content

Commit f9dc11f

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

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

test/unit/vendor/lime/limeTest.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ public function __construct()
5757
$expectedOutput = <<<'EOF'
5858
test/unit/vendor/lime/fixtures/failed................................not ok
5959
Failed tests: 1
60-
test/unit/vendor/lime/fixtures/failed_with_plan_less_than_total......dubious
61-
Test returned status 255
60+
test/unit/vendor/lime/fixtures/failed_with_plan_less_than_total......not ok
6261
Looks like you planned 1 test but ran 1 extra.
6362
Failed tests: 1
64-
test/unit/vendor/lime/fixtures/failed_with_plan_more_than_total......dubious
65-
Test returned status 255
63+
test/unit/vendor/lime/fixtures/failed_with_plan_more_than_total......not ok
6664
Looks like you planned 2 tests but only ran 1.
6765
Failed tests: 1
6866
test/unit/vendor/lime/fixtures/pass..................................ok
@@ -74,9 +72,9 @@ public function __construct()
7472
Looks like you planned 2 tests but only ran 1.
7573
Failed Test Stat Total Fail Errors List of Failed
7674
--------------------------------------------------------------------------
77-
it/vendor/lime/fixtures/failed 0 1 1 0 1
78-
iled_with_plan_less_than_total 255 2 1 0 1
79-
iled_with_plan_more_than_total 255 1 1 0 1
75+
it/vendor/lime/fixtures/failed 1 1 1 0 1
76+
iled_with_plan_less_than_total 1 2 1 0 1
77+
iled_with_plan_more_than_total 1 1 1 0 1
8078
pass_with_plan_less_than_total 255 2 0 0
8179
pass_with_plan_more_than_total 255 1 0 0
8280
Failed 5/6 test scripts, 16.67% okay. 5/10 subtests failed, 50.00% okay.
@@ -112,7 +110,7 @@ public function __construct()
112110
whenExecutePhpFileWillHaveStatusCodeAndOutput($harness, $test, $name, $expectedStatusCode, $expectedOutput);
113111

114112
$name = 'failed';
115-
$expectedStatusCode = 0;
113+
$expectedStatusCode = 1;
116114
$expectedOutput = <<<'EOF'
117115
not ok 1
118116
# Failed test (./test/unit/vendor/lime/fixtures/failed.php at line 7)
@@ -125,7 +123,7 @@ public function __construct()
125123
whenExecutePhpFileWillHaveStatusCodeAndOutput($harness, $test, $name, $expectedStatusCode, $expectedOutput);
126124

127125
$name = 'failed_with_plan_less_than_total';
128-
$expectedStatusCode = 0;
126+
$expectedStatusCode = 1;
129127
$expectedOutput = <<<'EOF'
130128
1..1
131129
not ok 1
@@ -140,7 +138,7 @@ public function __construct()
140138
whenExecutePhpFileWillHaveStatusCodeAndOutput($harness, $test, $name, $expectedStatusCode, $expectedOutput);
141139

142140
$name = 'failed_with_plan_more_than_total';
143-
$expectedStatusCode = 0;
141+
$expectedStatusCode = 1;
144142
$expectedOutput = <<<'EOF'
145143
1..2
146144
not ok 1
@@ -154,7 +152,7 @@ public function __construct()
154152
whenExecutePhpFileWillHaveStatusCodeAndOutput($harness, $test, $name, $expectedStatusCode, $expectedOutput);
155153

156154
$name = 'pass_with_plan_less_than_total';
157-
$expectedStatusCode = 0;
155+
$expectedStatusCode = 255;
158156
$expectedOutput = <<<'EOF'
159157
1..1
160158
ok 1
@@ -165,7 +163,7 @@ public function __construct()
165163
whenExecutePhpFileWillHaveStatusCodeAndOutput($harness, $test, $name, $expectedStatusCode, $expectedOutput);
166164

167165
$name = 'pass_with_plan_more_than_total';
168-
$expectedStatusCode = 0;
166+
$expectedStatusCode = 255;
169167
$expectedOutput = <<<'EOF'
170168
1..2
171169
ok 1

0 commit comments

Comments
 (0)