bfad177b5d
The patch wraps the underlying xmlrpc_encode_request() call into a standalone method that can be then unit-tested.