| 1 | <?php |
||
| 16 | class ImmutableExceptionTest extends \PHPUnit_Framework_TestCase |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Test immutable exception |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function testConstruct() |
||
| 24 | { |
||
| 25 | $exception = new ImmutableException(); |
||
| 26 | |||
| 27 | $this->assertInstanceOf(\Exception::class, $exception); |
||
| 28 | $this->assertEquals(ImmutableException::MESSAGE, $exception->getMessage()); |
||
| 29 | $this->assertEquals(500, $exception->getCode()); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |