Пример #1
0
 public function testValueReturnsZeroIfCouponIsExpired()
 {
     $coupon = new Coupon();
     $coupon->setValue(23);
     $coupon->setExpiresAt('2010-01-01');
     $this->assertEquals(0, $coupon->getValue());
 }