| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testConversion(ConverterInterface $converter, ConvertibleValue $from, Unit $to, string $expectedValue, string $expectedUnitName, string $expectedUnitAbbreviation) |
||
| 29 | { |
||
| 30 | $result = $converter->convert($from, $to); |
||
| 31 | |||
| 32 | $this->assertEquals($expectedValue, $result->getValue()); |
||
| 33 | $this->assertEquals($expectedUnitName, $result->getUnit()->getName()); |
||
| 34 | $this->assertEquals($expectedUnitAbbreviation, $result->getUnit()->getAbbreviation()); |
||
| 35 | } |
||
| 36 | |||
| 38 |