aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/OutputPageTest.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/OutputPageTest.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/OutputPageTest.php')
-rw-r--r--tests/phpunit/includes/OutputPageTest.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/phpunit/includes/OutputPageTest.php b/tests/phpunit/includes/OutputPageTest.php
index fa2de09ed4b4..b903be907354 100644
--- a/tests/phpunit/includes/OutputPageTest.php
+++ b/tests/phpunit/includes/OutputPageTest.php
@@ -23,8 +23,6 @@ class OutputPageTest extends MediaWikiIntegrationTestCase {
private const SCREEN_MEDIA_QUERY = 'screen and (min-width: 982px)';
private const SCREEN_ONLY_MEDIA_QUERY = 'only screen and (min-width: 982px)';
-
- // phpcs:disable Generic.Files.LineLength
private const RSS_RC_LINK = '<link rel="alternate" type="application/rss+xml" title=" RSS feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=rss"/>';
private const ATOM_RC_LINK = '<link rel="alternate" type="application/atom+xml" title=" Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"/>';
@@ -2634,7 +2632,6 @@ class OutputPageTest extends MediaWikiIntegrationTestCase {
}
public static function provideMakeResourceLoaderLink() {
- // phpcs:disable Generic.Files.LineLength
return [
// Single only=scripts load
[
@@ -2734,7 +2731,6 @@ class OutputPageTest extends MediaWikiIntegrationTestCase {
}
public static function provideBuildExemptModules() {
- // phpcs:disable Generic.Files.LineLength
return [
'empty' => [
'exemptStyleModules' => [],