dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix off by 1 error when displaying the number of a line with an error
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
documentation
/
ReleaseNotesTest.php
diff --git
a/tests/phpunit/documentation/ReleaseNotesTest.php
b/tests/phpunit/documentation/ReleaseNotesTest.php
index
05742d7
..
d8d0fdc
100644
(file)
--- a/
tests/phpunit/documentation/ReleaseNotesTest.php
+++ b/
tests/phpunit/documentation/ReleaseNotesTest.php
@@
-49,7
+49,8
@@
class ReleaseNotesTest extends MediaWikiTestCase {
"$type file '$fileName' is inaccessible."
);
- foreach ( $file as $num => $line ) {
+ foreach ( $file as $i => $line ) {
+ $num = $i + 1;
$this->assertLessThanOrEqual(
// FILE_IGNORE_NEW_LINES drops the \n at the EOL, so max length is 80 not 81.
80,