DrHyde/perl-modules-Class-Mockable — pull request #5 by andyjones (2013-03-05 21:48:12+00:00)
Title: Feature request: mock interfaces and methods that return arrays

Class::Mock::* look like they can mock interfaces that return scalar or refs. Any thoughts on mocking interfaces that return void, arrays or hashes?

The pull request does it by letting you pass in a code ref to generate what is returned