Hopefully by now, you know that testing is important, and you've integrated PHPUnit into your workflow. (If not, go watch one of those talks.) So now what?

In this "testing 202" course, we'll explore some features of PHPUnit you may not be using (but should), some techniques you may not have thought of, and how to extend PHPUnit yourself for your own nefarious testing purposes. And we'll answer the question, "so what are traits actually good for?"

Comments

Please login to leave a comment

Good talk going into useful features in PHPUnit. Larry was well prepared, and presented the concepts very well. The talk was entertaining, had actionable take aways, and was very pertinent to good software development practices. Good to hear some strong opinions mixed in there.

Paul Conroy at 20:36 on 20 May 2026

This is an excellent talk, full of practical tips. I learned a lot about phpunit options which I never knew existed, and Larry's presentation style is entertaining and high energy. An excellent talk!

Lots of fascinating and useful information. We are still on PHPUnit 10 at the moment, so it was good to hear that most of the cool features that were discussed should be available on that version. I especially liked that the author advised breaking out of the typical structure of a test class with the setUp() and tearDown() methods and replacing them with reusable methods.

I'm...a little more wary of traits. Not vehemently-against them, but in my experience they tend to be misused. So I'm a little reticent to sprinkle them throughout the test base, but if they make things like test fixtures and boring setup more accessible, which in turn makes tests easier to write, which in turn helps us write MORE tests...then that is a good thing.

Chris Lemon at 14:16 on 21 May 2026

Lots of great concepts and things that I can take home and implement. I do disagree with passing in assertions via data providers, if the assertions are different that should probably be a different test. Otherwise, loved it

Eric/a Seyden at 14:45 on 21 May 2026

Blew my mind! Showed me everything I was leaning on Pest for can be done in PHPUnit better with attributes. Excited to start using attributes in PHPUnit. Didn't even know these existed before this talk.

Omni Adams at 10:55 on 22 May 2026

As always Larry's very opinionated about tech topics, but can back up his opinions. I spent most of the conference after this talk refactoring some of my tests to better use TestWith and DataProviders, adding Test and TestDox attributes, and in general cleaning things up.