Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.712 kb
* @package framework
* @subpackage tests
* @author Ingo Schommer
class RandomGeneratorTest extends SapphireTest {
public function testGenerateEntropy() {
$r = new RandomGenerator();
$this->assertNotEquals($r->generateEntropy(), $r->generateEntropy());
public function testGenerateHash() {
$r = new RandomGenerator();
$this->assertNotEquals($r->randomToken(), $r->randomToken());
public function testGenerateHashWithAlgorithm() {
$r = new RandomGenerator();
$this->assertNotEquals($r->randomToken(), $r->randomToken('md5'));
Jump to Line
Something went wrong with that request. Please try again.