erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Add support for having warnings vs errors #424

Open dmaclach opened 4 years ago

dmaclach commented 4 years ago

A basic framework for dealing with issues that users may want to treat as either warnings or errors.

It supports setting a default from compile time, modifying it at runtime using an environment variable, and push/popping states off of a stack.

It also changes some exceptions that were being thrown to issues specifically because those exceptions are making it very difficult for me to transition my codebase from OCMock 3.4.1 to OCMock 3.6, and I know it will also be an issue for https://github.com/TextureGroup/Texture moving to OCMock 3.6.

Beginning of support for #413 .