| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class InvalidShortCodeExceptionTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @test |
||
| 16 | * @dataProvider providePrevious |
||
| 17 | */ |
||
| 18 | public function properlyCreatesExceptionFromCharset(?Throwable $prev): void |
||
| 25 | } |
||
| 26 | |||
| 27 | public function providePrevious(): iterable |
||
| 28 | { |
||
| 29 | yield 'null previous' => [null]; |
||
| 30 | yield 'instance previous' => [new Exception('Previous error', 10)]; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** @test */ |
||
| 34 | public function properlyCreatesExceptionFromNotFoundShortCode(): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 |