예제 #1
0
 public function testRandMax()
 {
     $generator = new PhpNumberGenerator();
     $this->assertEquals(getrandmax(), $generator->randMax());
 }
 public function testRandMaxReturnsRecordedGeneratorMax()
 {
     $generator = new PhpNumberGenerator();
     $recorder = new NumberGeneratorRecorder($generator);
     $this->assertEquals($generator->randMax(), $recorder->randMax());
 }