Follow up r62006 readding return $ok; to what is now runTests()
[lhc/web/wiklou.git] / maintenance / parserTests.inc
index 5885562..ff934ba 100644 (file)
@@ -289,7 +289,7 @@ class ParserTest {
 
        function runTests($tests) {
                $ok = true;
-        foreach($tests as $i => $t) {
+  foreach($tests as $i => $t) {
                        $result =
                                $this->runTest($t['test'], $t['input'], $t['result'], $t['options'], $t['config']);
                        $ok = $ok && $result;
@@ -298,6 +298,7 @@ class ParserTest {
                if ( $this->showProgress ) {
                        print "\n";
                }
+  return $ok;
        }
 
        /**