Skip to content

Commit 5817388

Browse files
fix mono alphabetic cipher test structure
1 parent 1a04f5e commit 5817388

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: tests/Ciphers/MonoAlphabeticCipherTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
use PHPUnit\Framework\TestCase;
44

5-
use function PHPUnit\Framework\assertEquals;
6-
75
require_once __DIR__ . '/../../vendor/autoload.php';
86
require_once __DIR__ . '/../../Ciphers/MonoAlphabeticCipher.php';
97

@@ -15,7 +13,7 @@ public function testMonoAlphabeticCipher()
1513
$key = "yhkqgvxfoluapwmtzecjdbsnri";
1614
$text = "I love1234 GitHub";
1715
$encryptedText = "O ambg XojFdh";
18-
assertEquals(maEncrypt($key, $alphabet, $text), $encryptedText);
19-
assertEquals(maDecrypt($key, $alphabet, $encryptedText), "I love GitHub");
16+
$this->assertEquals(maEncrypt($key, $alphabet, $text), $encryptedText);
17+
$this->assertEquals(maDecrypt($key, $alphabet, $encryptedText), "I love GitHub");
2018
}
2119
}

0 commit comments

Comments
 (0)