aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/import/ImportTest.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinkle@fastmail.com>2022-02-16 17:43:43 +0000
committerKrinkle <krinkle@fastmail.com>2022-02-18 18:32:05 +0000
commit8d406bbcd69cb50b110bd3fb0d0c9878e3b0b3be (patch)
tree562870515abca9923702fbd4ff394a69d0c19667 /tests/phpunit/includes/import/ImportTest.php
parent38467129b8c14acded3c3a5528c51e8f4641f25f (diff)
downloadmediawikicore-8d406bbcd69cb50b110bd3fb0d0c9878e3b0b3be.tar.gz
mediawikicore-8d406bbcd69cb50b110bd3fb0d0c9878e3b0b3be.zip
phpcs: Disable `Generic.Files.LineLength` for test files
There is a common and reasonable need for longer lines in tests. The nudge for shorter lines doesn't seem valuable here. The natural breaks will likely still fall in 80-100 given the enforced practice for non-test code, e.g. whether through habit, or 80-100 column markers in text editors, or the finite width of diff and code review interfaces. Change-Id: I879479e13551789a67624ce66f0946d2f185e6ee
Diffstat (limited to 'tests/phpunit/includes/import/ImportTest.php')
-rw-r--r--tests/phpunit/includes/import/ImportTest.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/phpunit/includes/import/ImportTest.php b/tests/phpunit/includes/import/ImportTest.php
index 933dc6eaa0fe..b8f7078366aa 100644
--- a/tests/phpunit/includes/import/ImportTest.php
+++ b/tests/phpunit/includes/import/ImportTest.php
@@ -33,7 +33,6 @@ class ImportTest extends MediaWikiLangTestCase {
}
public function getUnknownTagsXML() {
- // phpcs:disable Generic.Files.LineLength
return [
[
<<< EOF
@@ -97,7 +96,6 @@ EOF
}
public function getRedirectXML() {
- // phpcs:disable Generic.Files.LineLength
return [
[
<<< EOF
@@ -179,7 +177,6 @@ EOF
}
public function getSiteInfoXML() {
- // phpcs:disable Generic.Files.LineLength
return [
[
<<< EOF
@@ -244,8 +241,6 @@ EOF
$user = $this->getTestUser()->getUser();
$n = ( $assign ? 1 : 0 ) + ( $create ? 2 : 0 );
-
- // phpcs:disable Generic.Files.LineLength
$source = new ImportStringSource( <<<EOF
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en">
<page>