Test::Double::Mock::Expectation - Mock expectation object
Modifies expectation so that the expected method must be called at least a minimum number of times.
Modifies expectation so that the expected method must be called at most a maximum number of times.
Modifies expectation so that the number of calls to the expected method must be within a specific range.
Assigns expected callee arguments.
Assigns expected returning value or subroutine reference.
Return verified result hash.
Verify how many times does method get called, and what parameters passed to method. Setting expectations that how many calling method by at_least() or at_most() or times() and what parameters passed by with().
NAKAGAWA Masaki <masaki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Test::Double, Test::Double::Mock, Test::Deep, Test::More
To install Test::Double, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Double
CPAN shell
perl -MCPAN -e shell install Test::Double
For more information on module installation, please visit the detailed CPAN module installation guide.