Conditions | 2 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function properlyCreatesExceptionFromUrl(?Throwable $prev) |
||
18 | { |
||
19 | $e = InvalidUrlException::fromUrl('http://the_url.com', $prev); |
||
20 | |||
21 | $this->assertEquals('Provided URL "http://the_url.com" is not an existing and valid URL', $e->getMessage()); |
||
22 | $this->assertEquals($prev !== null ? $prev->getCode() : -1, $e->getCode()); |
||
23 | $this->assertEquals($prev, $e->getPrevious()); |
||
24 | } |
||
34 |