1 //---------------------------------------------------------------------------------------
3 // Copyright (c) 2004-2008 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import <Foundation/Foundation.h>
8 @interface OCMockObject
: NSProxy
11 BOOL expectationOrderMatters
;
12 NSMutableArray
*recorders
;
13 NSMutableArray
*expectations
;
14 NSMutableArray
*rejections
;
15 NSMutableArray
*exceptions
;
18 + (id
)mockForClass
:(Class
)aClass
;
19 + (id
)mockForProtocol
:(Protocol
*)aProtocol
;
20 + (id
)partialMockForObject
:(NSObject
*)anObject
;
22 + (id
)niceMockForClass
:(Class
)aClass
;
23 + (id
)niceMockForProtocol
:(Protocol
*)aProtocol
;
29 - (void)setExpectationOrderMatters
:(BOOL
)flag
;
40 - (BOOL
)handleInvocation
:(NSInvocation
*)anInvocation
;
41 - (void)handleUnRecordedInvocation
:(NSInvocation
*)anInvocation
;