Test::Mock::Wrapped::Verify - Part of the Test::Mock::Wrapper module
version 0.18
my $verifier = $wrapper->verify('bar'); $verifier->at_least(2)->at_most(5); $verifier->with(['zomg'])->never;
Instances of this class are returned by Test::Mock::Wrapper::verify to allow for flexible, readible call verification with objects mocked by Test::Mock:Wrapper
Returns an array of arrays representing all the calls to the mocked method which match any criteria added via a "with" call.
This returns a new verifier object with a call list which has been filtered using the supplied matcher. See Test::Deep for information about matcher syntax.
Assert this method was called exactly N times. This is equivelent to
Assert this method was never called. This is syntatic sugar, equivilent to
$verify->exactly(0)
Assert this method was called one time. This is syntatic sugar, equivilent to
$verify->exactly(1)
Assert this method was called at least N times.
Assert this method was called at most N times.
Dave Mueller <dave@perljedi.com>
This software is copyright (c) 2015 by Dave Mueller.
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::Wrapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Mock::Wrapper
CPAN shell
perl -MCPAN -e shell install Test::Mock::Wrapper
For more information on module installation, please visit the detailed CPAN module installation guide.