| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 24 | public function testInfiniteInfiniteComp() |
||
| 25 | { |
||
| 26 | $pInf = Decimal::getPositiveInfinite(); |
||
| 27 | $nInf = Decimal::getNegativeInfinite(); |
||
| 28 | |||
| 29 | $this->assertTrue($pInf->comp($pInf) === 0); |
||
| 30 | $this->assertTrue($nInf->comp($nInf) === 0); |
||
| 31 | |||
| 32 | $this->assertTrue($pInf->comp($nInf) === 1); |
||
| 33 | $this->assertTrue($nInf->comp($pInf) === -1); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |