test: Clean up data providers that should be static
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / SpecialMyLanguageTest.php
index c09d68c..4dbfc41 100644 (file)
@@ -26,10 +26,10 @@ class SpecialMyLanguageTest extends MediaWikiTestCase {
        /**
         * @covers SpecialMyLanguage::findTitle
         * @dataProvider provideFindTitle
-        * @param $expected
-        * @param $subpage
-        * @param $langCode
-        * @param $userLang
+        * @param string $expected
+        * @param string $subpage
+        * @param string $langCode
+        * @param string $userLang
         */
        public function testFindTitle( $expected, $subpage, $langCode, $userLang ) {
                $this->setMwGlobals( 'wgLanguageCode', $langCode );
@@ -53,7 +53,7 @@ class SpecialMyLanguageTest extends MediaWikiTestCase {
                $this->assertEquals( $expected, $title );
        }
 
-       public function provideFindTitle() {
+       public static function provideFindTitle() {
                return array(
                        array( null, '::Fail', 'en', 'en' ),
                        array( 'Page/Another', 'Page/Another/en', 'en', 'en' ),