{"type":"rich","version":"1.0","provider_name":"Transistor","provider_url":"https://transistor.fm","author_name":"Web Dev with Matt","title":"Writing Simpler, more maintainable DataProviders with PHPUnit's TestWith attribute","html":"<iframe width=\"100%\" height=\"180\" frameborder=\"no\" scrolling=\"no\" seamless src=\"https://share.transistor.fm/e/1424a925\"></iframe>","width":"100%","height":180,"duration":524,"description":"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 episodePHPUnit's DataProvider AnnotationPHPUnit's TestWith AttributePHP 8 AttributesThe post which this episode was based on: Write Simpler, More Maintainable DataProviders With PHPUnit 10's TestWith Attribute.Want to grow your knowledge further?Check out the books below, where you can grow your web development skills in a very focused, very hands-on way.Deploy with Docker ComposeMezzio EssentialsHosted and produced by: Matthew Setter.Website: https://matthewsetter.com.Follow me on: LinkedIn and Twitter.If you like the podcast, and want to support it, how about buying me a coffee?","thumbnail_url":"https://img.transistorcdn.com/ErogIDxqOFQN8RVLHvl3XfLOJ_kkPEv3rY7vQp7PDxI/rs:fill:0:0:1/w:400/h:400/q:60/mb:500000/aHR0cHM6Ly9pbWct/dXBsb2FkLXByb2R1/Y3Rpb24udHJhbnNp/c3Rvci5mbS9zaG93/LzEyNjc1LzE2NzIz/ODI3ODYtYXJ0d29y/ay5qcGc.webp","thumbnail_width":300,"thumbnail_height":300}