-
-
19 Nov 2010 03:14:28 UTC
- Distribution: Test-Magpie
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (29 / 41 / 0)
- Kwalitee
Bus factor: 0- License: perl_5
- Activity
24 month- Tools
- Download (17.71KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Oliver Charles
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.
AUTHOR
Oliver Charles
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Oliver Charles <oliver.g.charles@googlemail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Test::Magpie, copy and paste the appropriate command in to your terminal.
cpanm Test::Magpie
perl -MCPAN -e shell install Test::Magpie
For more information on module installation, please visit the detailed CPAN module installation guide.