Conditions | 2 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function properlyCreatesExceptionFromCharset(?Throwable $prev) |
||
18 | { |
||
19 | $e = InvalidShortCodeException::fromCharset('abc123', 'def456', $prev); |
||
20 | |||
21 | $this->assertEquals('Provided short code "abc123" does not match the char set "def456"', $e->getMessage()); |
||
22 | $this->assertEquals($prev !== null ? $prev->getCode() : -1, $e->getCode()); |
||
23 | $this->assertEquals($prev, $e->getPrevious()); |
||
24 | } |
||
44 |