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

NAME

Test::Magpie::Role::MethodCall - A role that represents a method call

ATTRIBUTES

arguments

An array reference of arguments, or argument matchers.

method_name

The name of the method.

METHODS

as_string

Stringifies this method call to something that roughly resembles what you'd type in Perl.

satisfied_by (MethodCall $invocation)

Returns true if the given $invocation would satisfy this method call. Note that while the $invocation could have arguments matchers in arguments, they will be passed into this method calls argument matcher. Which basically means, it probably won't work.

INTERNAL

This class is internal and not meant for use outside Magpie.

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.