From 08187d2da73bc6da1c12aa74783fcbbe2c98a3e3 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 16 Sep 2016 16:10:25 -0400 Subject: Updates GTMSenTestCase to not return nil from a non-null annotated method. --- UnitTesting/GTMSenTestCase.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'UnitTesting') diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m index 1de4ca7..b7a59a3 100644 --- a/UnitTesting/GTMSenTestCase.m +++ b/UnitTesting/GTMSenTestCase.m @@ -423,7 +423,7 @@ static NSInteger MethodSort(id a, id b, void *context) { } + (NSArray *)testInvocations { - NSArray *invocations = nil; + NSArray *invocations = @[]; if (![self isAbstractTestCase]) { invocations = [super testInvocations]; } -- cgit v1.2.3