Quantcast
Channel: PHP Hypertext Processor
Viewing all articles
Browse latest Browse all 69

Refactoring Singleton Usage to get Testable Code

$
0
0
So your code base is littered with singletons and using them? Don't worry, you can start refactoring them out of your code base class by class and introduce increased testability at every step. This strategy is very simple to implement and the propability of breaking your code is very low, especially when you are becoming more experienced with this technique.

Viewing all articles
Browse latest Browse all 69

Trending Articles