aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/SampleTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2018-01-01 14:10:16 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2018-01-01 14:10:16 +0100
commit255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b (patch)
treedf77c421492520f435b47339436eec0b5c20ca56 /tests/phpunit/includes/SampleTest.php
parent75160bdd3b4ac3642d147cda46e47c809999937d (diff)
downloadmediawikicore-255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b.tar.gz
mediawikicore-255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b.zip
build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Clean up use of @codingStandardsIgnore - @codingStandardsIgnoreFile -> phpcs:ignoreFile - @codingStandardsIgnoreLine -> phpcs:ignore - @codingStandardsIgnoreStart -> phpcs:disable - @codingStandardsIgnoreEnd -> phpcs:enable For phpcs:disable always the necessary sniffs are provided. Some start/end pairs are changed to line ignore Change-Id: I92ef235849bcc349c69e53504e664a155dd162c8
Diffstat (limited to 'tests/phpunit/includes/SampleTest.php')
-rw-r--r--tests/phpunit/includes/SampleTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/phpunit/includes/SampleTest.php b/tests/phpunit/includes/SampleTest.php
index 31eebe3c0ea9..c0930e3dbfd4 100644
--- a/tests/phpunit/includes/SampleTest.php
+++ b/tests/phpunit/includes/SampleTest.php
@@ -57,12 +57,12 @@ class SampleTest extends MediaWikiLangTestCase {
];
}
- // @codingStandardsIgnoreStart Generic.Files.LineLength
/**
+ * phpcs:disable Generic.Files.LineLength
* @dataProvider provideTitles
* See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.dataProvider
+ * phpcs:enable
*/
- // @codingStandardsIgnoreEnd
public function testCreateBasicListOfTitles( $titleName, $ns, $text ) {
$title = Title::newFromText( $titleName, $ns );
$this->assertEquals( $text, "$title", "see if '$titleName' matches '$text'" );
@@ -95,12 +95,10 @@ class SampleTest extends MediaWikiLangTestCase {
$this->assertTrue( $title->isLocal() );
}
- // @codingStandardsIgnoreStart Generic.Files.LineLength
/**
* @expectedException InvalidArgumentException
* See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.expectedException
*/
- // @codingStandardsIgnoreEnd
public function testTitleObjectFromObject() {
$title = Title::newFromText( Title::newFromText( "test" ) );
$this->assertEquals( "Test", $title->isLocal() );