NAME

Test::Double::Mock::Expectation - Mock expectation object

METHODS

at_least

Modifies expectation so that the expected method must be called at least a minimum number of times.

at_most

Modifies expectation so that the expected method must be called at most a maximum number of times.

times

Modifies expectation so that the number of calls to the expected method must be within a specific range.

with(@args)

Assigns expected callee arguments.

returns($expected_value_or_subref)

Assigns expected returning value or subroutine reference.

verify_result

Return verified result hash.

verify

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().

AUTHOR

NAKAGAWA Masaki <masaki@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Test::Double, Test::Double::Mock, Test::Deep, Test::More