Password test : Blowfish has now more than 24 chars length
This commit is contained in:
@@ -75,7 +75,7 @@ class PasswordTest extends \PHPUnit_Framework_TestCase
|
||||
$password = new password();
|
||||
$res = $password->cryptPassword("AAA", "CRYPT_BLOWFISH");
|
||||
$this->assertSame(
|
||||
substr($res, 0, 4) === "$2y$" && strlen($res) === 24,
|
||||
substr($res, 0, 4) === "$2y$" && strlen($res) > 24,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user