jonreid/OCMockito — pull request #4 by klundberg (2012-03-15 03:51:22+00:00)
Title: Added a new type of mock that can mimic a class and protocol simultaneously.

In my company's codebase, we have a peculiar use of protocols that i haven't really seen elsewhere, but it's perfectly valid Objective-C. Defining a variable of the following form:
````
UIViewController *controller;
````
allows one to store a subclass of UIViewController that conforms to some extra behavior. We use this as I feel it is simpler than extending our class hierarchy by an extra layer to support the common methods that are defined in CustomProtocol.

This new class+protocol mock was needed as when I tried to call a method that is only part of UIViewController on a mock object made to conform to CustomProtocol, I got an exception telling me that the method I called was not available. Therefore, I needed to make this new mock to satisfy my requirements. I hope that my additions are good enough to be included in the main distribution of OCMockito :)