@@ -70,6 +70,9 @@ |
||
| 70 | 70 | return $this->addExtremum(self::MAX, new Maximum($max)); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $name |
|
| 75 | + */ |
|
| 73 | 76 | protected function addExtremum($name, AddonInterface $addon) |
| 74 | 77 | { |
| 75 | 78 | $value = $addon->getValue(); |
@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | $this->assertAbsolute($this->value, $abs); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param FixedDiscount $abs |
|
| 48 | + */ |
|
| 46 | 49 | public function assertAbsolute($value, $abs) |
| 47 | 50 | { |
| 48 | 51 | $this->assertEquals($value, $abs->getValue()); |
@@ -58,6 +61,9 @@ discard block |
||
| 58 | 61 | $this->assertRelative($this->rate, $rel); |
| 59 | 62 | } |
| 60 | 63 | |
| 64 | + /** |
|
| 65 | + * @param FixedDiscount $rel |
|
| 66 | + */ |
|
| 61 | 67 | protected function assertRelative($rate, $rel) |
| 62 | 68 | { |
| 63 | 69 | $this->assertSame($rate, $rel->getValue()); |
@@ -77,6 +83,9 @@ discard block |
||
| 77 | 83 | $this->assertCharges($rel, $this->value); |
| 78 | 84 | } |
| 79 | 85 | |
| 86 | + /** |
|
| 87 | + * @param FixedDiscount $fd |
|
| 88 | + */ |
|
| 80 | 89 | public function assertCharges($fd, $sum) |
| 81 | 90 | { |
| 82 | 91 | $action = $this->createAction($this->prepaid->multiply(2)); |