Eris\Generator\ConstantGeneratorTest::testShrinkAlwaysToTheValue PHP Method

testShrinkAlwaysToTheValue() public method

    public function testShrinkAlwaysToTheValue()
    {
        $generator = new ConstantGenerator(true);
        $element = $generator($this->size, $this->rand);
        for ($i = 0; $i < 50; $i++) {
            $this->assertTrue($generator->shrink($element)->unbox());
        }
    }