Test::MockObject::Universal - a truly universal mock object
my $Dummy = Test::MockObject::Universal::->new(); $Dummy->can('whatever you want');
This class provides a very simple mock object that does not inherit from Test::MockObject.
The goal of this module is to be as simple and fast as possible.
If you want more functionality you should probably look at Test::MockObject.
Test::MockObject::Universal - A universal MockObject
Always returns true.
AUTOLOAD is provided to always return a empty list.
Constructor. Takes no arguments.
Dominik Schulz <dominik.schulz@gauner.org>
This software is copyright (c) 2012 by Dominik Schulz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::MockObject::Universal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::MockObject::Universal
CPAN shell
perl -MCPAN -e shell install Test::MockObject::Universal
For more information on module installation, please visit the detailed CPAN module installation guide.