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