diff --git a/tests/SignerTest.php b/tests/SignerTest.php index 61747b1..ef73b2f 100644 --- a/tests/SignerTest.php +++ b/tests/SignerTest.php @@ -120,7 +120,10 @@ public function testSignGmp($seededSignatureBC) */ public function testHalfPasswordCase($seededSignatureNormalPassword) { - $signer = new Signer(self::WMID, __DIR__ . self::KEY_FILE_NAME, self::KEY_PASSWORD . self::KEY_PASSWORD); + // A char added to check if the length of a password is odd + $doubleLengthPassword = self::KEY_PASSWORD . self::KEY_PASSWORD . '!'; + + $signer = new Signer(self::WMID, __DIR__ . self::KEY_FILE_NAME, $doubleLengthPassword); // Seed the random generator with 0 to get a predictable signature mt_srand(0);