summaryrefslogtreecommitdiffstats
path: root/tests/lib/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/helper.php')
-rw-r--r--tests/lib/helper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/helper.php b/tests/lib/helper.php
index 53a3e1a0ec8..ed15a677300 100644
--- a/tests/lib/helper.php
+++ b/tests/lib/helper.php
@@ -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);
}