Test::M...:Verify(3)
β¨ NAME β¨
Welcome to Test::Magpie::Verify(3) from the User Contributed Perl Documentation shelf β the Test::Magpie spy-glass situation for looking into a mockβs invocation history so you can verify stuff. ππ
π DESCRIPTION π
Spy objects are how you peek inside a mock and verify that certain methods actually got 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 is that a method call now checks whether that method was invoked on the mock at some point in time; if it wasnβt, it fails a test. π¨
You may use argument matchers in verifying method calls. π§
π«Ά 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.
Cute little sign-off, bestie: source/version perl v5.42.0, date 2020-11-24, manual Test::M...:Verify(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