Testing the invisible with Proxy-object
This article was originally published at Planet PHP
on 10 March 4520.
When I seriously started with test driven development and had way lesser experience in object oriented programming (OOP) than today, I always thought that this modifiers are more cumbersome than helpful. Over the time I learned about the principles of OOP and realized the necessity of modifiers. But still in terms of unit testing they are sometimes in the way.