ePages 7.48.0 - DE_EPAGES/USPS/t/MockedCalls.pm

Package DE_EPAGES::USPS::t::MockedCalls

It provides fake remote clients.

@EXPORT_OK
RemoteClientMocker

Functions

RemoteClientMocker

RemoteClientMocker

It provides a mocked Remote Client from a File.

Syntax
$Client = RemoteClientMocker($ResponseFile, $ResponseCode);
Input
$ResponseFile (string)
File path to get response content
$ResponseCode (string)
response code
Return
$Client (object)
Remote Client object