TestBase::call PHP Method

call() public method

Calls an object method even if it is protected or private
public call ( Object $object, string $methodName, mixed $args = null ) : mixed
$object Object the object to call a method on
$methodName string the method name to be called
$args mixed 0 or more arguments passed in the function
return mixed returns what the object's method call will return
    public function call($object, $methodName, $args = null)
    {
        $args = func_get_args();
        array_shift($args);
        array_shift($args);
        return self::_callMethod($object, $methodName, $args);
    }