Test::Mock::Context - The mocking context which oversees the mocking process
version 0.05
Mock the class named $class. The mock object will be ISA $class, and will have all the methods that $class does (but obviously invoking them doesn't run them).
$class
ISA $class
Register an expected method call of $method_name on $receiver. This will return a Test::Mock::Expectation, which you can specialize further with chaining if you need to specify further constraints.
$method_name
$receiver
Test::Mock::Expectation
Check through the list of expectations and invocations, and make sure that they are consistent. That is, every invocation satisfies some sort of expectation in the correct order.
Oliver Charles <oliver.g.charles@googlemail.com>
This software is copyright (c) 2010 by Oliver Charles.
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::Mock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Mock
CPAN shell
perl -MCPAN -e shell install Test::Mock
For more information on module installation, please visit the detailed CPAN module installation guide.