Testing Protected Methods with PHPUnit
Alright, I know that idea of ‘testing protected methods’ makes some people cringe. That instead of directly testing your protected methods you should test them indirectly via the public methods. I can support that argument, after all, as long as the code is being tested we’re doing our jobs. BUT when tests start to fail [...]
0 Comments