| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function testSetPriceFormat() |
||
| 45 | { |
||
| 46 | $priceFormat = $this->getMockBuilder(PriceFormat::class) |
||
| 47 | ->getMock(); |
||
| 48 | |||
| 49 | $priceFormat->expects($this->any()) |
||
| 50 | ->method('formatPrice') |
||
| 51 | ->willReturn(2.00); |
||
| 52 | |||
| 53 | $payment = new Payment($this->paymentInput); |
||
| 54 | $payment->setPriceFormat($priceFormat); |
||
| 55 | |||
| 56 | $this->assertSame(2.00, $payment->getFee(10)); |
||
| 57 | } |
||
| 58 | } |
||
| 59 |