Test/MockObject version 0.11
============================
* NOTES *
As of version 0.11, I've fixed a potential infinite loop with a set_series()
mocked method called in list context. Yuck.
As of version 0.10, mock objects no longer store their state within the objects
themselves. That also means that you can have mock objects that aren't hash
references. Nifty.
As of version 0.09, method chaining works for mocking methods. Handy! Use it!
As of version 0.07, the add() method has been deprecated in favor of mock().
It continues to work, for backwards compatibility purposes, but you are
encouraged to migrate to mock(). (Thank you for using the module, though. :)
Test::MockObject is a highly polymorphic testing object, capable of looking
like all sorts of objects. This makes white-box testing much easier, as you
can concentrate on what the code being tested sends to and receives from the
mocked object, instead of worrying about faking up your own data. (Another
option is not to test difficult things. Now you have no excuse.)
Please note that it is possible to write highly detailed unit tests that pass
even when your integration tests may fail. Testing the pieces individually
does not excuse you from testing the whole thing together. I consider this to
be a feature.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
Test::Simple version 0.44 or newer (I fixed a bug :)
COPYRIGHT AND LICENCE
Copyright (c) 2002 - 2003 chromatic. All rights reserved. This program is free
software; you can redistribute it and/or modify it under the same terms as Perl
itself.