Closed LTe closed 11 years ago
Thanks for reporting this. Do you think that the classes inside faked class should be faked recursively, or should they just be accessible?
Do you think that the classes inside faked class should be faked recursively, or should they just be accessible?
I think Bogus
should stub all class methods of this class. But we should still have access to class inside namespace. I think there is many usecases where you will fake only "top level class" and do not touch other classes. Because in some cases it will cause stub the entire project/namespace.
I have a problem with the library
DCell
. DCell provideDCell
class where you can execute methods likestart
orsetup
. I would like to fake this class. I can do this by:But after that I'm not able to use
DCell::Node
class.How to reproduce:
And execute: