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