Allow setting protected properties

This commit is contained in:
Joas Schilling 2015-04-27 15:22:48 +02:00 committed by Bjoern Schiessle
parent 4ef9df8750
commit cf4a6874fb
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);
}