summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-27 15:22:48 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-30 12:04:02 +0200
commitcf4a6874fb3b699e4d2ca85e2a6aa68f9288a609 (patch)
tree4ed3a9a204800f51f7a557878923ae1eccdf2e02 /tests
parent4ef9df8750553518143a7b1d088ab755db482cf1 (diff)
downloadnextcloud-server-cf4a6874fb3b699e4d2ca85e2a6aa68f9288a609.tar.gz
nextcloud-server-cf4a6874fb3b699e4d2ca85e2a6aa68f9288a609.zip
Allow setting protected properties
Diffstat (limited to 'tests')
-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);
}