aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/filerepo/file
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/filerepo/file
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/filerepo/file')
-rw-r--r--tests/phpunit/includes/filerepo/file/LocalFileTest.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/phpunit/includes/filerepo/file/LocalFileTest.php b/tests/phpunit/includes/filerepo/file/LocalFileTest.php
index a05d6fb065ac..6c3ddca2f432 100644
--- a/tests/phpunit/includes/filerepo/file/LocalFileTest.php
+++ b/tests/phpunit/includes/filerepo/file/LocalFileTest.php
@@ -522,31 +522,26 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
public function provideLoadFromDBAndCache() {
return [
'legacy' => [
- // phpcs:ignore Generic.Files.LineLength
'a:6:{s:10:"frameCount";i:0;s:9:"loopCount";i:1;s:8:"duration";d:0;s:8:"bitDepth";i:16;s:9:"colorType";s:10:"truecolour";s:8:"metadata";a:2:{s:8:"DateTime";s:19:"2019:07:30 13:52:32";s:15:"_MW_PNG_VERSION";i:1;}}',
[],
false,
],
'json' => [
- // phpcs:ignore Generic.Files.LineLength
'{"data":{"frameCount":0,"loopCount":1,"duration":0,"bitDepth":16,"colorType":"truecolour","metadata":{"DateTime":"2019:07:30 13:52:32","_MW_PNG_VERSION":1}}}',
[],
false,
],
'json with blobs' => [
- // phpcs:ignore Generic.Files.LineLength
'{"blobs":{"colorType":"__BLOB0__"},"data":{"frameCount":0,"loopCount":1,"duration":0,"bitDepth":16,"metadata":{"DateTime":"2019:07:30 13:52:32","_MW_PNG_VERSION":1}}}',
[ '"truecolour"' ],
false,
],
'large (>100KB triggers uncached case)' => [
- // phpcs:ignore Generic.Files.LineLength
'{"data":{"large":"' . str_repeat( 'x', 102401 ) . '","frameCount":0,"loopCount":1,"duration":0,"bitDepth":16,"colorType":"truecolour","metadata":{"DateTime":"2019:07:30 13:52:32","_MW_PNG_VERSION":1}}}',
[],
102401,
],
'large json blob' => [
- // phpcs:ignore Generic.Files.LineLength
'{"blobs":{"large":"__BLOB0__"},"data":{"frameCount":0,"loopCount":1,"duration":0,"bitDepth":16,"colorType":"truecolour","metadata":{"DateTime":"2019:07:30 13:52:32","_MW_PNG_VERSION":1}}}',
[ '"' . str_repeat( 'x', 102401 ) . '"' ],
102401,