/** * @expectedException DomainException */ public function testShrinkOnlyAcceptsElementsOfTheDomainAsParameters() { $generator = new Boolean(); $generator->shrink(10); }