NAME
Test::Mock::Wrapped::Verify - Part of the Test::Mock::Wrapper module
VERSION
version 0.14
SYNOPIS
my $verifier = $wrapper->verify('bar');
$verifier->at_least(2)->at_most(5);
$verifier->with(['zomg'])->never;
DESCRIPTION
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
METHODS
getCalls
Returns an array of arrays representing all the calls to the mocked method which match any criteria added via a "with" call.
with(['some', 'args', ignore()])
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.
exactly(N)
Assert this method was called exactly N times. This is equivelent to
never
Assert this method was never called. This is syntatic sugar, equivilent to
$verify->exactly(0)
once
Assert this method was called one time. This is syntatic sugar, equivilent to
$verify->exactly(1)
at_least(N)
Assert this method was called at least N times.
at_most(N)
Assert this method was called at most N times.
AUTHOR
Dave Mueller <dave@perljedi.com>
COPYRIGHT AND LICENSE
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.