@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use hiqdev\php\billing\action\ActionInterface; |
| 14 | 14 | use hiqdev\php\billing\charge\Charge; |
| 15 | 15 | use hiqdev\php\billing\charge\ChargeInterface; |
| 16 | -use hiqdev\php\billing\charge\ChargeModifier; |
|
| 17 | 16 | use hiqdev\php\billing\customer\CustomerInterface; |
| 18 | 17 | use hiqdev\php\billing\price\PriceInterface; |
| 19 | 18 | |
@@ -39,6 +39,9 @@ discard block |
||
| 39 | 39 | $this->assertAbsolute($this->value, $abs); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | + /** |
|
| 43 | + * @param FixedDiscount $abs |
|
| 44 | + */ |
|
| 42 | 45 | public function assertAbsolute($value, $abs) |
| 43 | 46 | { |
| 44 | 47 | $this->assertEquals($value, $abs->getValue()); |
@@ -54,6 +57,9 @@ discard block |
||
| 54 | 57 | $this->assertRelative($this->rate, $rel); |
| 55 | 58 | } |
| 56 | 59 | |
| 60 | + /** |
|
| 61 | + * @param FixedDiscount $rel |
|
| 62 | + */ |
|
| 57 | 63 | protected function assertRelative($rate, $rel) |
| 58 | 64 | { |
| 59 | 65 | $this->assertSame($rate, $rel->getValue()); |
@@ -73,6 +79,9 @@ discard block |
||
| 73 | 79 | $this->assertFixedDiscountCharges($rel, $this->value); |
| 74 | 80 | } |
| 75 | 81 | |
| 82 | + /** |
|
| 83 | + * @param FixedDiscount $fd |
|
| 84 | + */ |
|
| 76 | 85 | public function assertFixedDiscountCharges($fd, $sum) |
| 77 | 86 | { |
| 78 | 87 | $action = $this->createAction($this->prepaid->multiply(2)); |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use hiqdev\php\billing\charge\modifiers\FixedDiscount; |
| 15 | 15 | use hiqdev\php\billing\tests\unit\action\ActionTest; |
| 16 | 16 | use hiqdev\php\units\Quantity; |
| 17 | -use Money\Currency; |
|
| 18 | 17 | use Money\Money; |
| 19 | 18 | |
| 20 | 19 | /** |