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.