| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class ImmutabilityTest extends TestCase |
||
| 13 | { |
||
| 14 | public function test_immutability_of_set(): void |
||
| 15 | { |
||
| 16 | $test = new ImmutableSimpleObjectArray([new SimpleObject()]); |
||
| 17 | |||
| 18 | $this->expectExceptionObject(GuardException::immutableCannotMutate()); |
||
| 19 | |||
| 20 | $test[] = new SimpleObject(); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function test_immutability_of_unset(): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |