From b017700d0a2c4d21f450aee28c4fccb34a1947ed Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Thu, 13 Apr 2023 22:10:34 +0200 Subject: [PATCH] Password test : Blowfish has now more than 24 chars length --- Tests/PasswordTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/PasswordTest.php b/Tests/PasswordTest.php index bc30245..630b793 100644 --- a/Tests/PasswordTest.php +++ b/Tests/PasswordTest.php @@ -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 ); }