Skip to content

Feature request: mock interfaces and methods that return arrays #5

Open
wants to merge 2 commits into from

1 participant

@andyjones

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.