Follows-upb36d883. By far most data providers are static (and PHPUnit expects them to be static and calls them that way). Most of these classes already had their data providers static but additional commits sloppily introduced non-static ones. * ResourceLoaderWikiModuleTest,8968d8787f. * TitleTest,545f1d3a73. Odd unused method 'dataTestIsValidMoveOperation' was introduced in550b878e63. * GlobalVarConfigTest,a3e18c3670. Change-Id: I5da99f7cd3da68c550ae507ffe1f725d31e7666f
24 lines
704 B
PHP
24 lines
704 B
PHP
<?php
|
|
|
|
/**
|
|
* @group large
|
|
*/
|
|
class Pbkdf2PasswordTest extends PasswordTestCase {
|
|
protected function getTypeConfigs() {
|
|
return array( 'pbkdf2' => array(
|
|
'class' => 'Pbkdf2Password',
|
|
'algo' => 'sha256',
|
|
'cost' => '10000',
|
|
'length' => '128',
|
|
) );
|
|
}
|
|
|
|
public static function providePasswordTests() {
|
|
return array(
|
|
array( true, ":pbkdf2:sha1:1:20:c2FsdA==:DGDID5YfDnHzqbUkr2ASBi/gN6Y=", 'password' ),
|
|
array( true, ":pbkdf2:sha1:2:20:c2FsdA==:6mwBTcctb4zNHtkqzh1B8NjeiVc=", 'password' ),
|
|
array( true, ":pbkdf2:sha1:4096:20:c2FsdA==:SwB5AbdlSJq+rUnZJvch0GWkKcE=", 'password' ),
|
|
array( true, ":pbkdf2:sha1:4096:16:c2EAbHQ=:Vvpqp1VICZ3MN9fwNCXgww==", "pass\x00word" ),
|
|
);
|
|
}
|
|
}
|