/** * @expectedException DomainException */ public function testShrinkSomethingThatIsNotInDomain() { $generator = new Frequency([[10, 42], [1, 21]]); $generator->shrink('something'); }