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 |