Anonymous classes in PHP 7 are fantastic for tests

Posted on Friday March 3, 2017

I recently found myself writing some integration tests (or whatever you'd like to call them, people will argue about terminology for hours) for an app. Anonymous classes made testing the real implementation of my interface really easy, here's how.

Built with Tailwind CSS using Hugo hosted on Netlify
© 2022 Matt Brunt