| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function testAssignThrowsExceptionOnMissingRequiredKey() : void |
||
| 16 | { |
||
| 17 | $object = new stdClass(); |
||
| 18 | $object->requiredKey = 'value'; |
||
| 19 | |||
| 20 | $this->expectException(InvalidArgumentException::class); |
||
| 21 | $this->expectExceptionMessage('Key requiredKey is expected to be set and not to be null'); |
||
| 22 | Utils::assign($object, [], ['requiredKey']); |
||
| 23 | } |
||
| 60 |