Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix railfence cipher test improper class and func naming #161

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/Ciphers/RailfenceCipherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
require_once __DIR__ . '/../../vendor/autoload.php'; // Adjust the path as needed
require_once __DIR__ . '/../../Ciphers/RailfenceCipher.php'; // Adjust the path as needed

class RailFenceCipherTest extends TestCase
class RailfenceCipherTest extends TestCase
{
public function testRailFenceCipherCase1()
public function testRailfenceCipherCase1()
{
$plainMessage = "ABCDEF";
$rails = 3;
$cipherMessage = Railencode($plainMessage, $rails);
$decodedMessage = Raildecode($cipherMessage, $rails);
$this->assertEquals($plainMessage, $decodedMessage);
}
public function testRailFenceCipherCase2()
public function testRailfenceCipherCase2()
{
$plainMessage = "THIS IS RAILFENCE";
$rails = 3;
Expand Down
Loading