Debian Codegraph @

tests/phpunit/unit/includes/password/MWOldPasswordTest.php

raw symbols SCIP
1 <?php
2
3 use MediaWiki\Password\MWOldPassword;
4
5 /**
6 * @covers \MediaWiki\Password\MWOldPassword
7 * @covers \MediaWiki\Password\ParameterizedPassword
8 * @covers \MediaWiki\Password\Password
9 */
10 class MWOldPasswordTest extends PasswordTestCase {
11 protected function getTypeConfigs() {
12 return [ 'A' => [
13 'class' => MWOldPassword::class,
14 ] ];
15 }
16
17 public static function providePasswordTests() {
18 return [
19 [ true, ':A:5f4dcc3b5aa765d61d8327deb882cf99', 'password' ],
20 // Type-B password with incorrect type name is accepted
21 [ true, ':A:salt:9842afc7cb949c440c51347ed809362f', 'password' ],
22 [ false, ':A:d529e941509eb9e9b9cfaeae1fe7ca23', 'password' ],
23 [ false, ':A:salt:d529e941509eb9e9b9cfaeae1fe7ca23', 'password' ],
24 ];
25 }
26 }