Test::Builder::Mock::Class::Role::Object - Role for base object of mock class
This role provides an API for changing behavior of mock class.
with Test::Mock::Class::Role::Object
The Test::Builder singleton object.
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_tally
Returns the expected value for the method name and checks expectations. See Test::Mock::Class::Role::Object for more description.
Test::Mock::Class::Role::Object, Test::Mock::Class.
The API is not stable yet and can be changed in future.
Piotr Roszatycki <dexter@cpan.org>
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.
To install Test::Builder::Mock::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Builder::Mock::Class
CPAN shell
perl -MCPAN -e shell install Test::Builder::Mock::Class
For more information on module installation, please visit the detailed CPAN module installation guide.