Allow setting protected properties

This commit is contained in:
Joas Schilling 2015-04-27 15:22:48 +02:00 committed by Bjoern Schiessle
parent 70a44621be
commit 31b65749dd
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}