Closed b-viguier closed 7 years ago
You are right, this could be a bit more clear :)
Just to let you know how the generator works:
shuntParentClassCalls
apply only to the next generated mocknew \mock\...
)Ok, thanks for this confirmation :) I let you decide if this ticket has to be closed or not, but I think it could be a good reminder for everyone...
The doc has to be improved so I'll let this open as a reminder for what has to be done ;)
Thanks!
I have encountered the same issue with the orphanize
method.
It could be interesting to add the same note (https://github.com/atoum/atoum-documentation/compare/master...Grummfy:fix_37#diff-f08c1881f1aaa0bc58353d50958c5068R124) for this part.
Or make this note more global for all the mockGenerator part ?
a lot need improvements on tis part, I need to finished it with overall clear example (and this is the most difficult part in this one)
@bertrandjamin don't hesitate to clone my repo and try to improve this part in french or english.
According to the current (french) documentation, it is not clear to know if we have to call
shuntParentClassCalls
each time we create a mock or not. Here a surprising example for me:I guess that the mock generator work differently according to the class to mock, but IMHO it is not clear according to the documentation... or if it is not a feature, it is a bug :)
Thanks for your work!