Eris\Generator\SuchThatGeneratorTest::testGivesUpShrinkingIfTheFilterIsNotSatisfiedTooManyTimes PHP Method

testGivesUpShrinkingIfTheFilterIsNotSatisfiedTooManyTimes() public method

    public function testGivesUpShrinkingIfTheFilterIsNotSatisfiedTooManyTimes()
    {
        $generator = new SuchThatGenerator(function ($n) {
            return $n % 250 == 0;
        }, new ChooseGenerator(0, 1000));
        $unshrinkable = GeneratedValue::fromJustValue(470);
        $this->assertEquals($unshrinkable, $generator->shrink($unshrinkable));
    }