NAME

Test::Mock::Expectation - Represents an expected invocation of a method

VERSION

version 0.04

ATTRIBUTES

receiver : Object

Required. The object that a method should be invoked on.

method : Str

Required. The name of the method to be invoked.

parameters : ArrayRef

An array reference of parameter expectations. At the moment this is an array reference of how @_ should look when the method is invoked. In the future, there will be parameter expectation objects which can work over multiple paramaters, test out of order (eg, hash maps), test patterns, etc.

return : Any

Data to return when this expectation is called.

AUTHOR

Oliver Charles <oliver.g.charles@googlemail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 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.