Web Dev with Matt
Writing Simpler, more maintainable DataProviders with PHPUnit's TestWith attribute
8:44
If you love using data providers in PHPUnit, but find defining them verbose (and potentially buggy), then you’ll love the attribute-based approach in PHPUnit. In this episode, I'm stepping through what they are and why they're a great thing.
Links from the episode
PHPUnit's DataProvider Annotation
PHPUnit's TestWith Attribute
PHP 8 Attributes
The post which this episode was based on: Write…