Test::Magpie::When(3)
π Test::Magpie::When π
okay bestie, this is Test::Magpie::When, straight out of the User Contributed Perl Documentation collection. No cap, itβs a tiny page, but itβs giving very specific mock-stubbing energy. π
β¨ NAME β¨
Test::Magpie::When - The process of stubbing a mock method call
π¦ DESCRIPTION π¦
So basically: this is a mock object in stub mode, and its whole main-character job is declaring a stubbed method. You generate one by calling when in Test::Magpie with a mock object. Periodt. π
This object has the same API as the mock object. That means any method call will start the creation of a Test::Magpie::Stub, which can be modified to tailor the stub call. If that sounds like the part you actually care about, youβre so right β you are probably more interested in that documentation. iykyk π«Ά
π 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. Slay, but under those exact Perl terms. π
cute lil sign-off: this page came to you via source/version perl v5.42.0, dated 2020-11-24, under the tag Test::Magpie::When(3) πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Magpie 0.11-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms