1 //---------------------------------------------------------------------------------------
3 // Copyright (c) 2004-2010 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import <Foundation/Foundation.h>
8 @interface OCMockRecorder : NSProxy
11 NSInvocation *recordedInvocation;
12 NSMutableArray *invocationHandlers;
15 - (id)initWithSignatureResolver:(id)anObject;
17 - (BOOL)matchesInvocation:(NSInvocation *)anInvocation;
18 - (void)releaseInvocation;
20 - (id)andReturn:(id)anObject;
21 - (id)andReturnValue:(NSValue *)aValue;
22 - (id)andThrow:(NSException *)anException;
23 - (id)andPost:(NSNotification *)aNotification;
24 - (id)andCall:(SEL)selector onObject:(id)anObject;
25 #if NS_BLOCKS_AVAILABLE
26 - (id)andDo:(void (^)(NSInvocation *))block;
28 - (id)andForwardToRealObject;
30 - (NSArray *)invocationHandlers;