<?php
require_once dirname(__FILE__) . '/../../test/TestsHelper.php';
class EncryptionTest extends PHPUnit_Framework_TestCase
{
public function test_basic()
{
$crypt_text = SEncryption::encrypt('text to encrypt');
$this->assertEquals('text to encrypt', SEncryption::decrypt($crypt_text));
$this->assertNotEquals(SEncryption::encrypt('another text to encrypt'), SEncryption::encrypt('another text to encrypt'));
}
}