Allow setting protected properties
This commit is contained in:
parent
4ef9df8750
commit
cf4a6874fb
|
@ -523,6 +523,10 @@ class Test_Helper extends \Test\TestCase {
|
|||
|
||||
$property->setAccessible(true);
|
||||
|
||||
if (!empty($parameters)) {
|
||||
$property->setValue($object, array_pop($parameters));
|
||||
}
|
||||
|
||||
return $property->getValue($object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue