From 080b28284751ae178608f45268765f6e0ae94287 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 16 Sep 2009 17:04:27 +0000 Subject: [Author: dmaclach] Add support for more complex unit test class hierarchies than what is available out of the box in SenTestCase. I currently have the release notes checked out as part of a separate change, and will update them accordingly for this as well. R=thomasvl,mrossetti DELTA=80 (79 added, 0 deleted, 1 changed) --- Foundation/GTMObjC2Runtime.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Foundation/GTMObjC2Runtime.m') diff --git a/Foundation/GTMObjC2Runtime.m b/Foundation/GTMObjC2Runtime.m index 9835654..2eb5dc3 100644 --- a/Foundation/GTMObjC2Runtime.m +++ b/Foundation/GTMObjC2Runtime.m @@ -58,6 +58,10 @@ Class class_getSuperclass(Class cls) { return cls->super_class; } +BOOL class_respondsToSelector(Class cls, SEL sel) { + return class_getInstanceMethod(cls, sel) != nil; +} + Method *class_copyMethodList(Class cls, unsigned int *outCount) { if (!cls) return NULL; -- cgit v1.2.3