| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function fromIpAddressProperlyCreatesExceptionWithPrev() |
||
| 27 | { |
||
| 28 | $prev = new Exception('Previous error'); |
||
| 29 | $e = WrongIpException::fromIpAddress('1.2.3.4', $prev); |
||
| 30 | |||
| 31 | $this->assertEquals('Provided IP "1.2.3.4" is invalid', $e->getMessage()); |
||
| 32 | $this->assertEquals(0, $e->getCode()); |
||
| 33 | $this->assertSame($prev, $e->getPrevious()); |
||
| 34 | } |
||
| 36 |