Allow to mock multiple protocol in a single object#546
Open
Arthur-Milchior wants to merge 1 commit intoerikdoe:masterfrom
Open
Allow to mock multiple protocol in a single object#546Arthur-Milchior wants to merge 1 commit intoerikdoe:masterfrom
Arthur-Milchior wants to merge 1 commit intoerikdoe:masterfrom
Conversation
An Objective-C object can naturally implements an arbitrary number of protocol. I ended up in a case where I had to modify my code, because an object was expected to implement two protocols and OCMock does not allow it. I’d love to see this code merged so that it can. I also edited the code for nice mocks in order for the API to be consistent. I don’t actually need it. It should be noted that the description is not changed in the case where there is a single protocol mocked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An Objective-C object can naturally implements an arbitrary number of protocol. I ended up in a case where I had to modify my code, because an object was expected to implement two protocols and OCMock does not allow it. I’d love to see this code merged so that it can.
I also edited the code for nice mocks in order for the API to be consistent. I don’t actually need it.
It should be noted that the description is not changed in the case where there is a single protocol mocked.