PHPUnit test was not compatible with PHP ^7.0

This commit is contained in:
Christian Bläul
2024-08-29 17:33:01 +02:00
parent f9b08cb0ac
commit ff0e0c77fe

View File

@@ -326,7 +326,7 @@ class ParseTest extends TestCase {
* @return mixed Method return. * @return mixed Method return.
*/ */
private function invokeMethod($object, $methodName, $parameters = []) { private function invokeMethod($object, $methodName, $parameters = []) {
$reflection = new ReflectionClass($object::class); $reflection = new ReflectionClass(get_class($object));
$method = $reflection->getMethod($methodName); $method = $reflection->getMethod($methodName);
$method->setAccessible(true); $method->setAccessible(true);