| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 11 | public function testFiniteInfiniteComp() |
||
| 12 | { |
||
| 13 | $ten = Decimal::fromInteger(10); |
||
| 14 | $pInf = Decimal::getPositiveInfinite(); |
||
| 15 | $nInf = Decimal::getNegativeInfinite(); |
||
| 16 | |||
| 17 | $this->assertTrue($ten->comp($pInf) === -1); |
||
| 18 | $this->assertTrue($ten->comp($nInf) === 1); |
||
| 19 | |||
| 20 | $this->assertTrue($pInf->comp($ten) === 1); |
||
| 21 | $this->assertTrue($nInf->comp($ten) === -1); |
||
| 22 | } |
||
| 23 | |||
| 36 |