Exemple #1
0
 protected function setUp()
 {
     $this->sut = new Coupon();
     $this->sut->expiredAt = new \DateTime('tomorrow');
     $this->sut->hashKey = 'toto';
     $this->sut->setDurationValue(5);
 }
Exemple #2
0
 public function getValidInputs()
 {
     $obj = new Coupon();
     $obj->setDurationValue(5);
     $obj->hashKey = 'AZERTY';
     $obj->maximumUse = 50;
     $obj->expiredAt = new DateTime('2015-05-05');
     return [[['durationValue' => 5, 'hashKey' => 'AZERTY', 'maximumUse' => 50, 'expiredAt' => ['year' => 2015, 'month' => 5, 'day' => 5]], $obj]];
 }