mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
17 lines
370 B
PHP
17 lines
370 B
PHP
<?php
|
|
/**
|
|
* @group Core
|
|
*/
|
|
class Box_CryptTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function testCrypt()
|
|
{
|
|
$key = 'le password';
|
|
$text = 'foo bar';
|
|
|
|
$crypt = new Box_Crypt();
|
|
$encoded = $crypt->encrypt($text, $key);
|
|
$decoded = $crypt->decrypt($encoded, $key);
|
|
$this->assertEquals($text, $decoded);
|
|
}
|
|
} |