/**
* @group large
*/
-class BcryptPasswordTestCase extends MediaWikiPasswordTestCase {
+class BcryptPasswordTestCase extends PasswordTestCase {
protected function getTypeConfigs() {
return array( 'bcrypt' => array(
'class' => 'BcryptPassword',
) );
}
- 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" ),
array( false, ':bcrypt:5$CCCCCCCCCCCCCCCCCCCCC.$E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW', "UXU" ),
array( false, ':bcrypt:5$CCCCCCCCCCCCCCCCCCCCC.$E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW', "" ),
);
- /** @codingStandardsIgnoreEnd */
+ // @codingStandardsIgnoreEnd
}
}