| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ErrorTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testObjectInitializesCorrectly(): void |
||
| 13 | { |
||
| 14 | $error = new Error('TestType', 'foo bar', '1337'); |
||
| 15 | |||
| 16 | $this->assertSame('TestType', $error->getType()); |
||
| 17 | $this->assertSame('foo bar', $error->getMessage()); |
||
| 18 | $this->assertSame('1337', $error->getCode()); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function testObjectInitializesCorrectlyWithoutCode(): void |
||
| 28 | } |
||
| 29 | } |
||
| 30 |