MediaWiki
REL1_31
MWSaltedPasswordTest.php
Go to the documentation of this file.
1
<?php
2
8
class
MWSaltedPasswordTest
extends
PasswordTestCase
{
9
protected
function
getTypeConfigs
() {
10
return
[
'B'
=> [
11
'class'
=> MWSaltedPassword::class,
12
] ];
13
}
14
15
public
static
function
providePasswordTests
() {
16
return
[
17
[
true
,
':B:salt:9842afc7cb949c440c51347ed809362f'
,
'password'
],
18
[
false
,
':B:salt:d529e941509eb9e9b9cfaeae1fe7ca23'
,
'password'
],
19
];
20
}
21
}
MWSaltedPasswordTest
MWSaltedPassword ParameterizedPassword Password.
Definition
MWSaltedPasswordTest.php:8
MWSaltedPasswordTest\getTypeConfigs
getTypeConfigs()
Return an array of configs to be used for this class's password type.
Definition
MWSaltedPasswordTest.php:9
MWSaltedPasswordTest\providePasswordTests
static providePasswordTests()
An array of tests in the form of (bool, string, string), where the first element is whether the secon...
Definition
MWSaltedPasswordTest.php:15
PasswordTestCase
Definition
PasswordTestCase.php:26
tests
phpunit
includes
password
MWSaltedPasswordTest.php
Generated on Mon Nov 25 2024 15:36:31 for MediaWiki by
1.10.0