From 29323f5622a09821e6c19ab3f40d211b9dd73106 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 10 Dec 2017 11:40:05 +0100 Subject: [PATCH] Fix test class names to match convention The test class should have Test at end and same name as the testing class Change-Id: Id0c90994d257fb325834e123b462f7f0849ac556 --- tests/phpunit/includes/PagePropsTest.php | 2 +- tests/phpunit/includes/SampleTest.php | 2 +- tests/phpunit/includes/XmlJsTest.php | 2 +- tests/phpunit/includes/config/EtcdConfigTest.php | 2 +- .../includes/htmlform/HTMLAutoCompleteSelectFieldTest.php | 2 +- tests/phpunit/includes/htmlform/HTMLCheckMatrixTest.php | 2 +- tests/phpunit/includes/libs/mime/MimeAnalyzerTest.php | 2 +- tests/phpunit/includes/media/SVGTest.php | 2 +- tests/phpunit/includes/parser/TagHooksTest.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/includes/PagePropsTest.php b/tests/phpunit/includes/PagePropsTest.php index 89fd6e032f..c96d987017 100644 --- a/tests/phpunit/includes/PagePropsTest.php +++ b/tests/phpunit/includes/PagePropsTest.php @@ -7,7 +7,7 @@ * @group medium * ^--- tell phpunit that these test cases may take longer than 2 seconds. */ -class TestPageProps extends MediaWikiLangTestCase { +class PagePropsTest extends MediaWikiLangTestCase { /** * @var Title $title1 diff --git a/tests/phpunit/includes/SampleTest.php b/tests/phpunit/includes/SampleTest.php index 02935a5369..31eebe3c0e 100644 --- a/tests/phpunit/includes/SampleTest.php +++ b/tests/phpunit/includes/SampleTest.php @@ -1,6 +1,6 @@ getMockBuilder( EtcdConfig::class ) diff --git a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php index 33e3a257d2..99bea68dbf 100644 --- a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php +++ b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php @@ -4,7 +4,7 @@ * * @covers HTMLAutoCompleteSelectField */ -class HtmlAutoCompleteSelectFieldTest extends MediaWikiTestCase { +class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase { public $options = [ 'Bulgaria' => 'BGR', diff --git a/tests/phpunit/includes/htmlform/HTMLCheckMatrixTest.php b/tests/phpunit/includes/htmlform/HTMLCheckMatrixTest.php index f97716b9e5..c1aa1d7109 100644 --- a/tests/phpunit/includes/htmlform/HTMLCheckMatrixTest.php +++ b/tests/phpunit/includes/htmlform/HTMLCheckMatrixTest.php @@ -4,7 +4,7 @@ * Unit tests for the HTMLCheckMatrix * @covers HTMLCheckMatrix */ -class HtmlCheckMatrixTest extends MediaWikiTestCase { +class HTMLCheckMatrixTest extends MediaWikiTestCase { static private $defaultOptions = [ 'rows' => [ 'r1', 'r2' ], 'columns' => [ 'c1', 'c2' ], diff --git a/tests/phpunit/includes/libs/mime/MimeAnalyzerTest.php b/tests/phpunit/includes/libs/mime/MimeAnalyzerTest.php index 64f496049b..742eb95dc4 100644 --- a/tests/phpunit/includes/libs/mime/MimeAnalyzerTest.php +++ b/tests/phpunit/includes/libs/mime/MimeAnalyzerTest.php @@ -3,7 +3,7 @@ * @group Media * @covers MimeAnalyzer */ -class MimeMagicTest extends PHPUnit_Framework_TestCase { +class MimeAnalyzerTest extends PHPUnit_Framework_TestCase { /** @var MimeAnalyzer */ private $mimeAnalyzer; diff --git a/tests/phpunit/includes/media/SVGTest.php b/tests/phpunit/includes/media/SVGTest.php index 9fd640f56e..b68dd0ee0a 100644 --- a/tests/phpunit/includes/media/SVGTest.php +++ b/tests/phpunit/includes/media/SVGTest.php @@ -3,7 +3,7 @@ /** * @group Media */ -class SvgTest extends MediaWikiMediaTestCase { +class SVGTest extends MediaWikiMediaTestCase { /** * @var SvgHandler diff --git a/tests/phpunit/includes/parser/TagHooksTest.php b/tests/phpunit/includes/parser/TagHooksTest.php index 06fe272b29..7e31cba60f 100644 --- a/tests/phpunit/includes/parser/TagHooksTest.php +++ b/tests/phpunit/includes/parser/TagHooksTest.php @@ -28,7 +28,7 @@ * @covers PPNode_Hash_Array * @covers PPNode_Hash_Attr */ -class TagHookTest extends MediaWikiTestCase { +class TagHooksTest extends MediaWikiTestCase { public static function provideValidNames() { return [ [ 'foo' ], -- 2.20.1