notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
All times are UTC
Ukraine
non port: devel/p5-Test-Mock-LWP-Dispatch/distinfo
SVNWeb

Number of commits found: 5

Fri, 6 Nov 2015
[ 11:52 sunpoet search for other commits by this committer ] Original commit   Revision:400919
- Update to 0.08

Changes:	http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/Changes
Fri, 30 Oct 2015
[ 11:23 sunpoet search for other commits by this committer ] Original commit   Revision:400499
- Update to 0.07
- Add NO_ARCH

Changes:	http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/Changes
Sat, 8 Jun 2013
[ 21:04 sunpoet search for other commits by this committer ] Original commit   Revision:320287
- Update to 0.06

Changes:	http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/Changes
Tue, 16 Apr 2013
[ 16:54 sunpoet search for other commits by this committer ] Original commit   Revision:315850
- Update to 0.05
- Add LICENSE
- Cleanup Makefile header

Changes:	http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/Changes
Feature safe:	yes
Mon, 30 Apr 2012
[ 03:10 sunpoet search for other commits by this committer ] Original commit 
- Add p5-Test-Mock-LWP-Dispatch 0.03

Test::Mock::LWP::Dispatch intends for testing a code that heavily uses
LWP::UserAgent.

Assume that function you want to test makes three different request to the
server and expects to get some content from the server. To test this function
you should setup request/response mappings for mocked UserAgent and test it.

For doing something with mappings, here are methods map, unmap and unmap_all.
For controlling context of these mappings (is it applies for all created in your
code LWP::UserAgent's or only to one specific?) you should call these functions
for exported $mock_ua object (global mapping) or for newly created
LWP::UserAgent (local mappings).

See also on Test::Mock::LWP, it provides mocked LWP objects for you, so probably
you can solve your problems with this module too.

WWW: http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/

Number of commits found: 5