Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function testMutableProperties(string $propertyName, $value): void |
||
24 | { |
||
25 | $class = $this->getResourceClassName(); |
||
26 | $ob = new $class('test', 'test'); |
||
27 | |||
28 | $setter = 'set'.$propertyName; |
||
29 | $getter = 'get'.$propertyName; |
||
30 | |||
31 | \call_user_func([$ob, $setter], $value); |
||
32 | $this->assertSame($value, \call_user_func([$ob, $getter])); |
||
|
|||
33 | } |
||
42 |