sabirvirtuoso / Mockit

A simple mocking framework for Swift, inspired by the famous http://mockito.org/
MIT License
120 stars 27 forks source link

Static mocking? #17

Open Narayane opened 5 years ago

Narayane commented 5 years ago

Hi,

Is it possible to "mock" a static object or its static functions with Mockit? If yes, how?

Thanks.

sabirvirtuoso commented 5 years ago

Hi,

No it is not possible as of now in Mockit implementation to mock static objects and functions. Please feel free to contribute it if you like and send me a PR.

Thanks