Skip to content

Commit e3dc210

Browse files
author
Muhammad Umer Farooq
authored
Update EncryptionTest.php
1 parent e1fb5fe commit e3dc210

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/EncryptionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
/**
44
* This file is the Encryption test.
55
*
6-
* @author Malik Umer Farooq <lablnet01@gmail.com>
7-
* @author-profile https://www.facebook.com/malikumerfarooq01/
6+
* @author Peter279k <peter279k@gmail.com>
7+
* @author-profile https://peterli.website/
88
*
99
* For the full copyright and license information, please view the LICENSE
1010
* file that was distributed with this source code.
1111
*
12-
* @since 3.0.0
12+
* @note This file is not a part of Zest Framework.
1313
*
1414
* @license MIT
1515
*/
@@ -23,7 +23,7 @@ class EncryptionTest extends TestCase
2323
{
2424
public function testEncryptAndDecryptWithOpenSsl()
2525
{
26-
$encryption = new Encryption('openssl', '12345678990-=====-===');
26+
$encryption = new Encryption('12345678990-=====-===','openssl');
2727
$encryptedString = $encryption->encrypt('plain-text');
2828
$decryptedString = $encryption->decrypt($encryptedString);
2929

@@ -34,7 +34,7 @@ public function testEncryptAndDecryptWithOpenSsl()
3434

3535
public function testEncryptAndDecryptWithSodium()
3636
{
37-
$encryption = new Encryption('sodium', 'euyq74tjfdskjFDSGq74');
37+
$encryption = new Encryption('euyq74tjfdskjFDSGq74','sodium');
3838
$encryptedString = $encryption->encrypt('plain-text');
3939
$decryptedString = $encryption->decrypt($encryptedString);
4040

0 commit comments

Comments
 (0)