Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ff5b24

Browse files
committed
Merge pull request phpredis#241 from remicollet/0ad8482727cd656ce0d8ab228225ff0e0b038a66
Improves test suite
2 parents 28fe4c1 + 0ad8482 commit 5ff5b24

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/TestRedis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3271,6 +3271,6 @@ public function testTime() {
32713271
}
32723272
}
32733273

3274-
TestSuite::run("Redis_Test");
3274+
exit(TestSuite::run("Redis_Test"));
32753275

32763276
?>

tests/test.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ public static function run($className) {
5151

5252
if(empty($className::$errors)) {
5353
echo "All tests passed.\n";
54+
return 0;
5455
}
5556

5657
echo implode('', $className::$errors);
58+
return 1;
5759
}
5860
}
5961

0 commit comments

Comments
 (0)