Fix some language depending phpunit tests by using MediaWikiLangTestCase
[lhc/web/wiklou.git] / tests / phpunit / includes / password / BcryptPasswordTest.php
index b4d5f99..d90567f 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * @group large
  */
-class BcryptPasswordTestCase extends MediaWikiPasswordTestCase {
+class BcryptPasswordTestCase extends PasswordTestCase {
        protected function getTypeConfigs() {
                return array( 'bcrypt' => array(
                        'class' => 'BcryptPassword',
@@ -11,8 +11,8 @@ class BcryptPasswordTestCase extends MediaWikiPasswordTestCase {
                ) );
        }
 
-       public function providePasswordTests() {
-               /** @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong */
+       public static function providePasswordTests() {
+               // @codingStandardsIgnoreStart Generic.Files.LineLength
                return array(
                        // Tests from glibc bcrypt implementation
                        array( true, ':bcrypt:5$CCCCCCCCCCCCCCCCCCCCC.$E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW', "U*U" ),
@@ -35,6 +35,6 @@ class BcryptPasswordTestCase extends MediaWikiPasswordTestCase {
                        array( false, ':bcrypt:5$CCCCCCCCCCCCCCCCCCCCC.$E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW', "UXU" ),
                        array( false, ':bcrypt:5$CCCCCCCCCCCCCCCCCCCCC.$E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW', "" ),
                );
-               /** @codingStandardsIgnoreEnd */
+               // @codingStandardsIgnoreEnd
        }
 }