/** * @expectedException OutOfBoundsException */ public function testValueCannotBeLowerThanZero() { $coupon = new Coupon(); $coupon->setValue(-1); }