| Total Complexity | 1 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Phprest\Exception; |
||
| 5 | class InternalServerErrorTest extends TestCase |
||
| 6 | { |
||
| 7 | public function testInstantiation(): void |
||
| 8 | { |
||
| 9 | $exception = new InternalServerError(9, [1,2,3]); |
||
| 10 | |||
| 11 | $this->assertEquals('Internal Server Error', $exception->getMessage()); |
||
| 12 | $this->assertEquals(500, $exception->getStatusCode()); |
||
| 13 | $this->assertEquals(9, $exception->getCode()); |
||
| 14 | $this->assertEquals([1,2,3], $exception->getDetails()); |
||
| 15 | } |
||
| 17 |