diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-03 16:18:01 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-07 15:44:04 +0100 |
commit | b668850aa16a73a1c93e9caab46627ef25e9369c (patch) | |
tree | e9efe9e2b1bddf0ffc54fce5adc39b9592a1d504 /tests/lib | |
parent | a25b46f49477a05956d6a299bdb39b502f79aefa (diff) | |
download | nextcloud-server-b668850aa16a73a1c93e9caab46627ef25e9369c.tar.gz nextcloud-server-b668850aa16a73a1c93e9caab46627ef25e9369c.zip |
Fix filesystem tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/TestCase.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php index aa2c720d830..69cf2a39792 100644 --- a/tests/lib/TestCase.php +++ b/tests/lib/TestCase.php @@ -226,7 +226,11 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase { $property->setValue($object, array_pop($parameters)); } - return $property->getValue($object); + if (is_object($object)) { + return $property->getValue($object); + } + + return $property->getValue(); } return false; |