PHPUnit - MockBuilder::enableProxyingToOriginalMethods() breaks when original constructor calls public method
问题 I'm trying to write a unit test that involves mocking a class whose constructor calls several public methods. Said public methods cannot be made private, at least for now. The same class also has magic methods that I want to keep unmocked (__get/__set/__isset), which is why I resorted to using enableProxyingToOriginalMethods() - I found no way to enable just those three original methods (source here: PHPUnit - call parent __get/__set/__isset). This makes the magic methods work, however it