Anonymous classes were added to PHP 7. This article intends to show how useful they can be for writing tests.
Want to add comments to your Statamic powered site? Try out Meerkat: a beautiful, full-featured comment system for Statamic. (sponsored link)
Using anonymous classes to write simpler tests
Posted on | Freek Van der Herten