Skip to content

Allow to mock multiple protocol in a single object #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Arthur-Milchior
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant