From cf4a6874fb3b699e4d2ca85e2a6aa68f9288a609 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 27 Apr 2015 15:22:48 +0200 Subject: [PATCH] Allow setting protected properties --- tests/lib/helper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/lib/helper.php b/tests/lib/helper.php index 53a3e1a0ec..ed15a67730 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); }