コード例 #1
0
 public function testRandMax()
 {
     $generator = new PhpNumberGenerator();
     $this->assertEquals(getrandmax(), $generator->randMax());
 }
コード例 #2
0
 public function testRandMaxReturnsRecordedGeneratorMax()
 {
     $generator = new PhpNumberGenerator();
     $recorder = new NumberGeneratorRecorder($generator);
     $this->assertEquals($generator->randMax(), $recorder->randMax());
 }