/** * @expectedException DomainException */ public function testExceptionWhenTryingToShrinkValuesOutsideOfTheDomain() { $generator = Elements::fromArray(['A', 1]); $generator->shrink(2); }