diff options
Diffstat (limited to 'Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php')
-rw-r--r-- | Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php b/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php index 4991330..fdc400a 100644 --- a/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php +++ b/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php @@ -48,18 +48,15 @@ class Pbkdf2PasswordEncoderTest extends \PHPUnit_Framework_TestCase */ public function testEncodePasswordLength() { - $encoder = new Pbkdf2PasswordEncoder(); + $encoder = new Pbkdf2PasswordEncoder('foobar'); $encoder->encodePassword(str_repeat('a', 5000), 'salt'); } - /** - * @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException - */ public function testCheckPasswordLength() { - $encoder = new Pbkdf2PasswordEncoder(); + $encoder = new Pbkdf2PasswordEncoder('foobar'); - $encoder->isPasswordValid('encoded', str_repeat('a', 5000), 'salt'); + $this->assertFalse($encoder->isPasswordValid('encoded', str_repeat('a', 5000), 'salt')); } } |