I love prophecy I use this library a lot.
I have seen strange behavior when trying to mock method like this __methodName so I looked in code base and I found that exist a whitelist of reflectable methods. I would mock these methods like __doRequest from soap ext-library for example with __ in the name. If this behavior can be changed, it would be a great thing, if you agree I could make a PR.
I love prophecy I use this library a lot. I have seen strange behavior when trying to mock method like this
__methodName
so I looked in code base and I found that exist a whitelist of reflectable methods. I would mock these methods like__doRequest
from soap ext-library for example with__
in the name. If this behavior can be changed, it would be a great thing, if you agree I could make a PR.Example
Output
Class in prophecy that contains a whitelist