Files
FOSSBilling/tests-legacy/library/Box/Box_CryptTest.php
T
Belle Aerni 075c809881 Updated our rector configs (#2224)
* Some rector config work

* Increased type coverage, added dead code
2024-04-09 00:51:42 -07:00

17 lines
401 B
PHP

<?php
#[PHPUnit\Framework\Attributes\Group('Core')]
class Box_CryptTest extends PHPUnit\Framework\TestCase
{
public function testCrypt(): void
{
$key = 'le password';
$text = 'foo bar';
$crypt = new Box_Crypt();
$encoded = $crypt->encrypt($text, $key);
$decoded = $crypt->decrypt($encoded, $key);
$this->assertEquals($text, $decoded);
}
}