Eris\Generator\FrequencyGeneratorTest::testMoreFrequentGeneratorIsChosenMoreOften PHP Method

testMoreFrequentGeneratorIsChosenMoreOften() public method

    public function testMoreFrequentGeneratorIsChosenMoreOften()
    {
        $generator = new FrequencyGenerator([[10, 42], [1, 21]]);
        $countOf = $this->distribute($generator);
        $this->assertTrue($countOf[42] > $countOf[21], '21 got chosen more often then 42 even if it has a much lower frequency');
    }