Skip Menu |

This queue is for tickets about the Test-MockObject CPAN distribution.

Report information
The Basics
Id: 1249
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Test-MockObject

People
Owner: Nobody in particular
Requestors: pdcawley-cpan [...] bofh.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Test::MockObject::mock should return $self
If you modify Test::MockObject::mock so that, instead of returning the sub that's being used to do the mockery, it returned the current object then one could write: <pre> $mock_object->set_true('method') ->set_true('another_method') ->set_false('wibble') </pre> etc. which is rather pleasant from the point of view of someone using the MockObject.
Great idea! I've put this in version 0.09 and am releasing it and another fix to the CPAN. Thanks!