The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Magpie::When - The process of stubbing a mock method call

DESCRIPTION

A mock object in stub mode to declare a stubbed method. You generate this by calling when in Test::Magpie with a mock object.

This object has the same API as the mock object - any method call will start the creation of a Test::Magpie::Stub, which can be modified to tailor the stub call. You are probably more interested in that documentation.

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.