Fix off by 1 error when displaying the number of a line with an error
Change-Id: I876ba04f6903127a9d5adedfe0a5e2598a90068c
This commit is contained in:
parent
15b4a0785e
commit
f3b090c31f
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue