PHP Architect · Vol 18, Issue 10 · October 2019
Pragmatic PHP: Testing Singletons
by Edward Barnard
This month wraps up our singleton coverage. We’ll see the self registry variant (a self-contained registry pattern implementation). We’ll find ways to test singletons and learn how to test database memoization without requiring an actual database.
The full article is in PHP Architect Vol 18, Issue 10. Subscribe to read it and every new issue.