Files
FOSSBilling/tests/bb-library/Box/CryptTest.php
T
2014-11-03 09:00:47 +02:00

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);
}
}