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()); }