| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function testUndefinedPropertyException( |
||
| 53 | string $implementation, |
||
| 54 | array $args, |
||
| 55 | bool $getNotSet, |
||
| 56 | bool $writeAll, |
||
| 57 | string $property |
||
| 58 | ) : void { |
||
| 59 | $this->expectException(UndefinedPropertyException::class); |
||
| 60 | $this->expectExceptionMessage( |
||
| 61 | sprintf( |
||
| 62 | 'Property not defined: %s::$%s', |
||
| 63 | $implementation, |
||
| 64 | $property |
||
| 65 | ) |
||
| 66 | ); |
||
| 67 | |||
| 68 | $obj = new $implementation($args, $writeAll); |
||
| 69 | |||
| 70 | if ($getNotSet) { |
||
| 71 | $foo = $obj->$property; |
||
|
|
|||
| 72 | } else { |
||
| 73 | $obj->$property = 1; |
||
| 74 | } |
||
| 77 |