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

NAME

Test::Builder::Mock::Class::Role::Object - Role for base object of mock class

DESCRIPTION

This role provides an API for changing behavior of mock class.

INHERITANCE

ATTRIBUTES

_mock_test_builder : Test::Builder

The Test::Builder singleton object.

METHODS

mock_tally() : Self

Check the expectations at the end. See Test::Mock::Class::Role::Object for more description.

The test passes if original mock_tally method doesn't throw an exception.

mock_invoke( method : Str, args : Array ) : Any

Returns the expected value for the method name and checks expectations. See Test::Mock::Class::Role::Object for more description.

The test passes if original mock_tally method doesn't throw an exception.

SEE ALSO

Test::Mock::Class::Role::Object, Test::Mock::Class.

BUGS

The API is not stable yet and can be changed in future.

AUTHOR

Piotr Roszatycki <dexter@cpan.org>

LICENSE

Based on SimpleTest, an open source unit test framework for the PHP programming language, created by Marcus Baker, Jason Sweat, Travis Swicegood, Perrick Penet and Edward Z. Yang.

Copyright (c) 2009, 2010 Piotr Roszatycki <dexter@cpan.org>.

This program is free software; you can redistribute it and/or modify it under GNU Lesser General Public License.