| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ExceptionTest extends TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @dataProvider dataProviderSetUp |
||
| 11 | */ |
||
| 12 | public function testSetUp($message, $code, $data = null, $previous = null): void |
||
| 13 | { |
||
| 14 | $e = new Exception($message, $code, $data, $previous); |
||
| 15 | $this->assertSame($message, $e->getMessage()); |
||
| 16 | $this->assertSame($code, $e->getCode()); |
||
| 17 | $this->assertSame($previous, $e->getPrevious()); |
||
| 18 | $this->assertSame($data, $e->getData()); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function dataProviderSetUp(): array |
||
| 26 | ]; |
||
| 27 | } |
||
| 29 |