From fb12bb38e466a88ca393717d420bdafd17b83068 Mon Sep 17 00:00:00 2001 From: mpyw Date: Fri, 25 Jun 2021 10:53:40 +0900 Subject: [PATCH] Fix alias cases --- tests/CryptorTest.php | 2 +- tests/FixedPasswordCryptorTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/CryptorTest.php b/tests/CryptorTest.php index 40545e5..756ada2 100644 --- a/tests/CryptorTest.php +++ b/tests/CryptorTest.php @@ -34,7 +34,7 @@ public function testAes256(): void public function testRc4(): void { - $cryptor = new Cryptor('RC4'); + $cryptor = new Cryptor('rc4'); $encryptedA = $cryptor->encrypt('data', 'password'); $encryptedB = $cryptor->encrypt('data', 'password'); diff --git a/tests/FixedPasswordCryptorTest.php b/tests/FixedPasswordCryptorTest.php index 27f7f36..aabb138 100644 --- a/tests/FixedPasswordCryptorTest.php +++ b/tests/FixedPasswordCryptorTest.php @@ -30,8 +30,8 @@ public function testAes256(): void public function testRc4(): void { - $cryptor = new FixedPasswordCryptor('password', new Cryptor('RC4')); - $anotherCryptor = new FixedPasswordCryptor('passward', new Cryptor('RC4')); + $cryptor = new FixedPasswordCryptor('password', new Cryptor('rc4')); + $anotherCryptor = new FixedPasswordCryptor('passward', new Cryptor('rc4')); $encryptedA = $cryptor->encrypt('data'); $encryptedB = $cryptor->encrypt('data');