예제 #1
0
파일: RandTest.php 프로젝트: pnaq57/zf2demo
 public function testAltGeneratorIsRandomWithCorrectLength()
 {
     $source = Math\Rand::getAlternativeGenerator();
     $rand = $source->generate(32);
     $this->assertTrue(32 === strlen($rand));
     $rand2 = $source->generate(32);
     $this->assertNotEquals($rand, $rand2);
 }