Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/243393
Change subject: Fix Generic.Files.LineLength phpcs check in 10 files under
tests/phpunit/includes/
......................................................................
Fix Generic.Files.LineLength phpcs check in 10 files under
tests/phpunit/includes/
Bug: T102614
Change-Id: I94a1fc7c890c82a36f0b51e42d311585c275775c
---
M tests/phpunit/includes/LinkerTest.php
M tests/phpunit/includes/content/CssContentHandlerTest.php
M tests/phpunit/includes/libs/CSSMinTest.php
M tests/phpunit/includes/libs/XmlTypeCheckTest.php
M tests/phpunit/includes/libs/composer/ComposerLockTest.php
M tests/phpunit/includes/logging/ProtectLogFormatterTest.php
M tests/phpunit/includes/media/WebPTest.php
M tests/phpunit/includes/password/LayeredParameterizedPasswordTest.php
8 files changed, 37 insertions(+), 11 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/93/243393/1
diff --git a/tests/phpunit/includes/LinkerTest.php
b/tests/phpunit/includes/LinkerTest.php
index b8b5a77..58634d4 100644
--- a/tests/phpunit/includes/LinkerTest.php
+++ b/tests/phpunit/includes/LinkerTest.php
@@ -289,6 +289,7 @@
}
public static function provideCasesForFormatLinksInComment() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array(
'foo bar <a href="/wiki/Special:BlankPage"
title="Special:BlankPage">Special:BlankPage</a>',
@@ -306,5 +307,6 @@
'enwiki',
),
);
+ // @codingStandardsIgnoreEnd
}
}
diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php
b/tests/phpunit/includes/content/CssContentHandlerTest.php
index e1785a9..58735bc 100644
--- a/tests/phpunit/includes/content/CssContentHandlerTest.php
+++ b/tests/phpunit/includes/content/CssContentHandlerTest.php
@@ -21,10 +21,12 @@
* Keep this in sync with CssContentTest::provideGetRedirectTarget()
*/
public static function provideMakeRedirectContent() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array( 'MediaWiki:MonoBook.css', "/* #REDIRECT
*/@import
url(//example.org/w/index.php?title=MediaWiki:MonoBook.css&action=raw&ctype=text/css);"
),
array( 'User:FooBar/common.css', "/* #REDIRECT
*/@import
url(//example.org/w/index.php?title=User:FooBar/common.css&action=raw&ctype=text/css);"
),
array( 'Gadget:FooBaz.css', "/* #REDIRECT */@import
url(//example.org/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);"
),
);
+ // @codingStandardsIgnoreEnd
}
}
diff --git a/tests/phpunit/includes/libs/CSSMinTest.php
b/tests/phpunit/includes/libs/CSSMinTest.php
index 7841f30..f4f7bfd 100644
--- a/tests/phpunit/includes/libs/CSSMinTest.php
+++ b/tests/phpunit/includes/libs/CSSMinTest.php
@@ -188,6 +188,7 @@
.
'%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D'
.
'%228%22%3E%0A%3Ccircle%20cx%3D%224%22%20cy%3D%224%22%20r%3D%222%22%2F%3E%0A%3C%2Fsvg%3E%0A';
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array(
'Regular file',
@@ -374,6 +375,7 @@
'.ui-state-default, .ui-widget-content
.ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid
#d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/
url(http://localhost/w/images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/
50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/;
font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; }',
),
);
+ // @codingStandardsIgnoreEnd
}
/**
diff --git a/tests/phpunit/includes/libs/XmlTypeCheckTest.php
b/tests/phpunit/includes/libs/XmlTypeCheckTest.php
index f0ba934..308ad1f 100644
--- a/tests/phpunit/includes/libs/XmlTypeCheckTest.php
+++ b/tests/phpunit/includes/libs/XmlTypeCheckTest.php
@@ -8,7 +8,8 @@
class XmlTypeCheckTest extends PHPUnit_Framework_TestCase {
const WELL_FORMED_XML = "<root><child /></root>";
const MAL_FORMED_XML = "<root><child /></error>";
- const XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet
type="text/xsl" href="/w/index.php"?><svg><child /></svg>';
+ const XML_WITH_PIH = '<?xml version="1.0"?>' .
+ '<?xml-stylesheet type="text/xsl"
href="/w/index.php"?><svg><child /></svg>';
/**
* @covers XMLTypeCheck::newFromString
diff --git a/tests/phpunit/includes/libs/composer/ComposerLockTest.php
b/tests/phpunit/includes/libs/composer/ComposerLockTest.php
index cac3b10..6b374f2 100644
--- a/tests/phpunit/includes/libs/composer/ComposerLockTest.php
+++ b/tests/phpunit/includes/libs/composer/ComposerLockTest.php
@@ -38,7 +38,8 @@
'email' => '[email protected]',
),
),
- 'description' => 'Constant Database (CDB)
wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are
absent.',
+ 'description' => 'Constant Database (CDB)
wrapper library for PHP. '.
+ 'Provides pure-PHP fallback when dba_*
functions are absent.',
),
'cssjanus/cssjanus' => array(
'version' => '1.1.1',
@@ -108,14 +109,18 @@
'role' => 'Developer',
),
),
- 'description' => 'The only standard solution to
translate any kind of text with an avant-garde web interface within MediaWiki,
including your documentation and software',
+ 'description' => 'The only standard solution to
translate any kind ' .
+ 'of text with an avant-garde web
interface within MediaWiki, ' .
+ 'including your documentation and
software',
),
'mediawiki/universal-language-selector' => array(
'version' => '2014.12',
'type' => 'mediawiki-extension',
'licenses' => array( 'GPL-2.0+', 'MIT' ),
'authors' => array(),
- 'description' => 'The primary aim is to allow
users to select a language and configure its support in an easy way. Main
features are language selection, input methods and web fonts.',
+ 'description' => 'The primary aim is to allow
users to select a language ' .
+ 'and configure its support in an easy
way. ' .
+ 'Main features are language selection,
input methods and web fonts.',
),
), $lock->getInstalledDependencies(), false, true );
}
diff --git a/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
b/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
index 558c0fd..17decf3 100644
--- a/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
@@ -255,7 +255,9 @@
),
),
array(
- 'text' => 'User changed protection
level for ProtectPage [Edit=Allow only administrators] (indefinite) [Move=Allow
only administrators] (indefinite) [cascading]',
+ 'text' => 'User changed protection
level for ProtectPage ' .
+ '[Edit=Allow only
administrators] (indefinite) ' .
+ '[Move=Allow only
administrators] (indefinite) [cascading]',
'api' => array(
'description' => '[edit=sysop]
(indefinite)[move=sysop] (indefinite)',
'cascade' => true,
diff --git a/tests/phpunit/includes/media/WebPTest.php
b/tests/phpunit/includes/media/WebPTest.php
index b6d4114..a92f25a 100644
--- a/tests/phpunit/includes/media/WebPTest.php
+++ b/tests/phpunit/includes/media/WebPTest.php
@@ -78,10 +78,22 @@
}
public function provideTestWithFileExtractMetaData() {
return array(
- array( __DIR__ .
'/../../data/media/2_webp_ll.webp',
- array( 'compression' => 'lossless',
'width' => 386, 'height' => 395 ) ),
- array( __DIR__ .
'/../../data/media/2_webp_a.webp',
- array( 'compression' => 'lossy',
'animated' => false, 'transparency' => true, 'width' => 386, 'height' => 395 )
),
+ array( __DIR__ . '/../../data/media/2_webp_ll.webp',
+ array(
+ 'compression' => 'lossless',
+ 'width' => 386,
+ 'height' => 395
+ )
+ ),
+ array( __DIR__ . '/../../data/media/2_webp_a.webp',
+ array(
+ 'compression' => 'lossy',
+ 'animated' => false,
+ 'transparency' => true,
+ 'width' => 386,
+ 'height' => 395
+ )
+ ),
);
}
diff --git
a/tests/phpunit/includes/password/LayeredParameterizedPasswordTest.php
b/tests/phpunit/includes/password/LayeredParameterizedPasswordTest.php
index 86e8270..368fda1 100644
--- a/tests/phpunit/includes/password/LayeredParameterizedPasswordTest.php
+++ b/tests/phpunit/includes/password/LayeredParameterizedPasswordTest.php
@@ -27,11 +27,11 @@
}
public static function providePasswordTests() {
- /** @codingStandardsIgnoreStart
Generic.Files.LineLength.TooLong */
+ // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong
return array(
array( true,
':testLargeLayeredTop:sha512:1024:512!sha512:1024:512!sha512:1024:512!sha512:1024:512!5!vnRy+2SrSA0fHt3dwhTP5g==!AVnwfZsAQjn+gULv7FSGjA==!xvHUX3WcpkeSn1lvjWcvBg==!It+OC/N9tu+d3ByHhuB0BQ==!Tb.gqUOiD.aWktVwHM.Q/O!7CcyMfXUPky5ptyATJsR2nq3vUqtnBC',
'testPassword123' ),
);
- /** @codingStandardsIgnoreEnd */
+ // @codingStandardsIgnoreEnd
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/243393
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I94a1fc7c890c82a36f0b51e42d311585c275775c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits