1 //---------------------------------------------------------------------------------------
3 // Copyright (c) 2009-2010 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import "OCPartialMockObject.h"
7 #import "OCMRealObjectForwarder.h"
8 #import "OCPartialMockRecorder.h"
11 @implementation OCPartialMockRecorder
13 - (id)andForwardToRealObject
15 [invocationHandlers addObject:[[[OCMRealObjectForwarder alloc] init] autorelease]];
20 - (void)forwardInvocation:(NSInvocation *)anInvocation
22 [super forwardInvocation:anInvocation];
23 // not as clean as I'd wish...
24 [(OCPartialMockObject *)signatureResolver setupForwarderForSelector:[anInvocation selector]];