Provided by: libtest-mockobject-perl_1.20150527-1_all
NAME
Test::MockObject - Perl extension for emulating troublesome interfaces
SYNOPSIS
use Test::MockObject; my $mock = Test::MockObject->new(); $mock->set_true( 'somemethod' ); ok( $mock->somemethod() ); $mock->set_true( 'veritas') ->set_false( 'ficta' ) ->set_series( 'amicae', 'Sunny', 'Kylie', 'Bella' );
DESCRIPTION
It's a simple program that doesn't use any other modules, and those are easy to test. More often, testing a program completely means faking up input to another module, trying to coax the right output from something you're not supposed to be testing anyway. Testing is a lot easier when you can control the entire environment. With Test::MockObject, you can get a lot closer. Test::MockObject allows you to create objects that conform to particular interfaces with very little code. You don't have to reimplement the behavior, just the input and the output.
DOCUMENTATION
The full documentation for this module can be found at CPAN Search <http://search.cpan.org/dist/Test-MockObject>, MetaCPAN <http://www.metacpan.org/module/Test::MockObject>, or by running "perldoc Test::MockObject" at the commandline.
AUTHOR
chromatic, <chromatic at wgz dot org>
SEE ALSO
perl, Test::Tutorial, Test::More, http://www.perl.com/pub/a/2001/12/04/testing.html, and http://www.perl.com/pub/a/2002/07/10/tmo.html.
COPYRIGHT
Copyright (c) 2002 - 2015 by chromatic <chromatic at wgz dot org>. This program is free software; you can use, modify, and redistribute it under the same terms as Perl 5.10.x itself. See http://www.perl.com/perl/misc/Artistic.html