| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function fromIpAddressProperlyCreatesExceptionWithoutPrev(): void |
||
| 14 | { |
||
| 15 | $e = WrongIpException::fromIpAddress('1.2.3.4'); |
||
| 16 | |||
| 17 | $this->assertEquals('Provided IP "1.2.3.4" is invalid', $e->getMessage()); |
||
| 18 | $this->assertEquals(0, $e->getCode()); |
||
| 19 | $this->assertNull($e->getPrevious()); |
||
| 20 | } |
||
| 33 |