Eris\Generator\ChooseGeneratorTest::testPicksRandomlyAnIntegerAmongBoundaries PHP Method

testPicksRandomlyAnIntegerAmongBoundaries() public method

    public function testPicksRandomlyAnIntegerAmongBoundaries()
    {
        $generator = new ChooseGenerator(-10, 10);
        for ($i = 0; $i < 100; $i++) {
            $this->assertTrue($generator->contains($value = $generator($this->size, $this->rand)), "Failed to assert that the value {$value} is between -10 and 10");
        }
    }