NAME
Test::Magpie::Spy - A look into the invocation history of a mock for verifaciotn
DESCRIPTION
Spy objects allow you to look inside a mock and verify that certain methods have been called. You create these objects by using verify
from Test::Magpie.
Spy objects do not have a public API as such; they share the same method calls as the mock object itself. The difference being, a method call now checks that the method was invoked on the mock at some point in time, and if not, fails a test.
You may use argument matchers in verification method calls.
ATTRIBUTES
name
The name of the test that is printed to screen when the test is executed.
verification
times => 1
at_least => 3
at_most => 5
between => [3, 5]
The test to be applied. It is specified as a HashRef that maps the type of test to the test parameters.
AUTHORS
Oliver Charles <oliver.g.charles@googlemail.com>
Steven Lee <stevenwh.lee@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 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.