Location: PHPKode > projects > Stato > stato-0.10/common/test/EncryptionTest.php
<?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'));
    }
}

Return current item: Stato