Test::LWP::UserAgent is pure Perl, right? So if it's not available as an Ubuntu package, you could just bundle a copy in your project's t/lib/ dir.
The other possibility is to do things the other way around, and bundle a test HTTP server; then you can use a real client. I often do this; e.g. the test suite for IO::Callback::HTTP.
In reply to Re: How to unit test code that used LWP
by tobyink
in thread How to unit test code that used LWP
by chrestomanci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |