| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class FeeCalculatorTest extends AbstractTest |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @dataProvider data_netToGross |
||
| 16 | */ |
||
| 17 | public function test_netToGross($net, $gross, $percentage, $fixed) |
||
| 18 | { |
||
| 19 | $diff = abs($gross - FeeCalculator::netToGross($net, $percentage, $fixed)); |
||
| 20 | self::assertLessThan(1, $diff); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function data_netToGross() |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | } |