Skip to content

Commit

Permalink
test: fix railfence cipher test improper class and func naming
Browse files Browse the repository at this point in the history
  • Loading branch information
darwinz committed Sep 11, 2024
1 parent 0cb4a4b commit 18ca8fe
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 18ca8fe

Please sign in to comment.