Writing Simpler, more maintainable DataProviders with PHPUnit's TestWith attribute

10/10/2024 8 min Temporada 2 Episodio 23
Writing Simpler, more maintainable DataProviders with PHPUnit's TestWith attribute

Listen "Writing Simpler, more maintainable DataProviders with PHPUnit's TestWith attribute"

Episode Synopsis


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?

★ Support this podcast on Patreon ★

More episodes of the podcast Web Dev with Matt