Extends
lithium\test\Unit
Tests the random number generator.
Source
public function testRandomGenerator() {
$check = array();
$count = 25;
for ($i = 0; $i < $count; $i++) {
$result = String::random(8);
$this->assertFalse(in_array($result, $check));
$check[] = $result;
}
}