Merge pull request #161 from TheAlgorithms/fix-deprecated-test-class

test: fix railfence cipher test improper class and func naming
This commit is contained in:
Brandon Johnson 2024-09-10 23:23:03 -06:00 committed by GitHub
commit 9a80c3afd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,9 +5,9 @@ use PHPUnit\Framework\TestCase;
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;
@ -15,7 +15,7 @@ class RailFenceCipherTest extends TestCase
$decodedMessage = Raildecode($cipherMessage, $rails);
$this->assertEquals($plainMessage, $decodedMessage);
}
public function testRailFenceCipherCase2()
public function testRailfenceCipherCase2()
{
$plainMessage = "THIS IS RAILFENCE";
$rails = 3;