May 26, 2018
LWP::UserAgent suitable for simulating and testing network calls
LWPUserAgent suitable for simulating and testing network calls.
It overrides a few key low-level methods of LWPUserAgent that are concerned with actually sending your request over the network, allowing an interception of that request and simulating a particular response. This greatly facilitates testing of client networking code where the server follows a known protocol.