Closed marcuswu0814 closed 8 years ago
I try to mocking a class method like this:
id classMock = OCMClassMock([NSString class]); OCMStub([classMock string]).andReturn(@"123456"); NSString *aString = [NSString string]; NSLog(@"%@", aString);
But the aString is not "123456", anything wrong when I used it?
Sorry, I think I do it in wrong way.
I read the doc write: _Class methods on NSString and NSArray cannot be stubbed or verified_ Please help me to close this issue, thanks.
I try to mocking a class method like this:
But the aString is not "123456", anything wrong when I used it?