From 7fec5ecda76c4ee565efe12671fc3c8be1a64a7b Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 18 Dec 2021 17:48:04 +0100 Subject: tests: Remove FILE_SKIP_EMPTY_LINES from ReleaseNotesTest The line count in the error message gets wrong, when the empty lines are not counted. Change-Id: Ibb3a39d55893dc8ddd08208df356d189eabd73df --- tests/phpunit/unit/documentation/ReleaseNotesTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/phpunit/unit/documentation/ReleaseNotesTest.php') diff --git a/tests/phpunit/unit/documentation/ReleaseNotesTest.php b/tests/phpunit/unit/documentation/ReleaseNotesTest.php index f8313c072cf7..d481d4b35bf9 100644 --- a/tests/phpunit/unit/documentation/ReleaseNotesTest.php +++ b/tests/phpunit/unit/documentation/ReleaseNotesTest.php @@ -59,7 +59,7 @@ class ReleaseNotesTest extends MediaWikiUnitTestCase { } private function assertFileLength( $type, $fileName ) { - $lines = file( $fileName, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); + $lines = file( $fileName, FILE_IGNORE_NEW_LINES ); $this->assertNotFalse( $lines, -- cgit v1.2.3