diff --git a/test/lib/test.class.php b/test/lib/test.class.php index a6e754169c..bc2e9e0532 100644 --- a/test/lib/test.class.php +++ b/test/lib/test.class.php @@ -203,6 +203,7 @@ class baseTest $method = $reflection->getMethod($methodName); if(!$method->isPublic()) $method->setAccessible(true); - return $method->invokeArgs($instance, $args); + $object = $method->isStatic() ? null : $instance; + return $method->invokeArgs($object, $args); } }