wiki.techinc.nl/tests/phpunit/includes/password/Pbkdf2PasswordTest.php
Kunal Mehta 56e256758a Revert "Unbreak Pbkdf2PasswordTest"
This was fixed in PHPUnit 6.5.14, thanks to @epdenouden for fixing it and
seeing it get backported. We now explicitly require ^6.5.14 in composer.json
for PHPUnit.

This reverts commit 9c5174669e.

Change-Id: I15e5a99657a74bf94af636d5a44ea74df0a324f8
2019-10-03 14:58:47 -07:00

28 lines
787 B
PHP

<?php
/**
* @group large
* @covers Pbkdf2Password
* @covers Password
* @covers ParameterizedPassword
* @requires function hash_pbkdf2
*/
class Pbkdf2PasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
return [ 'pbkdf2' => [
'class' => Pbkdf2Password::class,
'algo' => 'sha256',
'cost' => '10000',
'length' => '128',
] ];
}
public static function providePasswordTests() {
return [
[ true, ":pbkdf2:sha1:1:20:c2FsdA==:DGDID5YfDnHzqbUkr2ASBi/gN6Y=", 'password' ],
[ true, ":pbkdf2:sha1:2:20:c2FsdA==:6mwBTcctb4zNHtkqzh1B8NjeiVc=", 'password' ],
[ true, ":pbkdf2:sha1:4096:20:c2FsdA==:SwB5AbdlSJq+rUnZJvch0GWkKcE=", 'password' ],
[ true, ":pbkdf2:sha1:4096:16:c2EAbHQ=:Vvpqp1VICZ3MN9fwNCXgww==", "pass\x00word" ],
];
}
}