Test::Magpie::When(3)

πŸ“¦ version 0.11, in opensuse-leap 16.0

πŸ’– 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>

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