NAME

Test::MockObject::Chain - Perl extension for quickly mocking your terrible law of demeter failing code

SYNOPSIS

use Test::MockObject::Chain;
my $user = Test::MockObject::Chain->new();
$user->orders()->find(newest => 1)->total_cost_in_pence() = 1000; 

DESCRIPTION

Quickly mock out chained objects in your tests. You should probably refactor instead of using this.

EXPORT

None by default.

SEE ALSO

Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards.

If you have a mailing list set up for your module, mention it here.

If you have a web site set up for your module, mention it here.

AUTHOR

Jonathan Taylor, <jon@local>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Jonathan Taylor

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.