Feature Requests: Browse | Submit New | Admin

[#21639] Allow stubs and expects to match multiple methods

Date:
2008-08-22 14:18
Priority:
3
Submitted By:
James Mead (jamesmead)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Allow stubs and expects to match multiple methods

Detailed description
As per Alain Ravet's request on the mailing list [1].

Maybe introduce a MethodMatcher class like the
ParameterMatcher classes, but there might be some problems when it comes to doing
this with partial mocks. In the case Alain describes, we'd need to redefine
all the class methods on Factory that matched your regex so that we could
intercept calls to any of them.

James.

[1] http://groups.google.com/group/mocha-developer/browse_thread/thread/3979b53f21dc81f7/836fd0af55dbe982

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-01-02 16:50
Sender: James Mead

This feature request has moved to Lighthouse [1].

[1] http://floehopper.lighthouseapp.com/projects/22289/tickets/12

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item