16 Aug 2013 08:36:22 UTC
- Distribution: Test-Magpie
- Module version: 0.11
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (970 / 1 / 116)
- KwaliteeBus factor: 0
- 88.24% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity24 month
- Download (24.87KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSTEVENL Steven Leeand 1 contributors
- Oliver Charles
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- COPYRIGHT AND LICENSE
Test::Magpie::Stub - The declaration of a stubbed method
Represents a stub method - a method that may have some sort of action when called. Stub methods are created by invoking the method name (with a set of possible argument matchers/arguments) on the object returned by
Stub methods have a stack of executions. Every time the stub method is called (matching arguments), the next execution is taken from the front of the queue and called. As stubs are matched via arguments, you may have multiple stubs for the same method name.
Internal. An array reference containing all stub executions.
Pushes a stub method that will return $return_value to the end of the execution queue.
Pushes a stub method that will throw
$exceptionwhen called to the end of the execution stack.
Internal. Executes the next execution, if possible
Oliver Charles <firstname.lastname@example.org>
Steven Lee <email@example.com>
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.