Fix filesystem tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/23780/head
Roeland Jago Douma 2020-12-03 16:18:01 +07:00
parent a25b46f494
commit b668850aa1
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 5 additions and 1 deletions

@ -226,7 +226,11 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
$property->setValue($object, array_pop($parameters)); $property->setValue($object, array_pop($parameters));
} }
return $property->getValue($object); if (is_object($object)) {
return $property->getValue($object);
}
return $property->getValue();
} }
return false; return false;