Back to Vol 18, Issue 10

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.

Subscribe
Edward Barnard

About the author

Edward Barnard

Ed Barnard had a front-row seat when the Morris Worm took down the Internet, November 1988. He was teaching CRAY-1 supercomputer operating system internals to analysts as they were being directly hit by the Worm. It was a busy week! Ed continues to indulge his interests in computer security and teaching software concepts to others.

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →