Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -289,7 +289,7 @@ |
290 | 290 | |
291 | 291 | function runTests($tests) { |
292 | 292 | $ok = true; |
293 | | - foreach($tests as $i => $t) { |
| 293 | + foreach($tests as $i => $t) { |
294 | 294 | $result = |
295 | 295 | $this->runTest($t['test'], $t['input'], $t['result'], $t['options'], $t['config']); |
296 | 296 | $ok = $ok && $result; |
— | — | @@ -1592,10 +1592,10 @@ |
1593 | 1593 | if(fseek($this->fh, 0)) { |
1594 | 1594 | wfDie( "Couldn't fseek to the start of '$filename'\n" ); |
1595 | 1595 | } |
1596 | | - $this->index = 0; |
| 1596 | + $this->index = -1; |
1597 | 1597 | $this->lineNum = 0; |
1598 | 1598 | $this->eof = false; |
1599 | | - $this->readNextTest(); |
| 1599 | + $this->next(); |
1600 | 1600 | |
1601 | 1601 | return true; |
1602 | 1602 | } |