In the middle of Web 3.0 it's become obvious that a very large percentage of developers are aware that there are tools available that allow them to write automated tests for the code they write. But you don't write tests. Never have. You feel a little bad about it but you tell yourself that it looks really tough to get into and you have a hard deadline that doesn't have any time for you to learn to use these tools.

What if you could learn how to write tests from someone who has been using them for a long time and also knows how to explain it in a way that cuts down on the fear and anxiety while teaching you what you need to go to get started immediately? That's what Chris Hartjes, long-time PHP testing evangelist, wants to do for you.

In this workshop Chris starts you off from the point of never having written a unit test and guides you through what tests really are. Then he will show you PHPUnit works and what features are the ones you really need to know. Next you will walk through using Test Driven Development using some code katas and leave with a solid, practical foundation that you can take back to your regular job and actually use. Testing your code is hard and might require you to relearn some closely-held practices. Let a grumpy programmer fix that for you!

Code for the workshop can be found at


Comments are closed.

Frank Perez at 13:40 on 2 Feb 2017

Nicely done and easy to follow along. Thanks for sharing.

Joshua Sampia at 10:54 on 3 Feb 2017

Great workshop, glad we go to do the bonus round.

A great tutorial and a good way to start the conference :)

Troy Potter at 22:26 on 3 Feb 2017

Thanks for all the help Chris.
Much appreciated.

Very practical tutorial with examples. I liked the fact that Chris shared exactly what he does and how he does testing on his day to day.

Kyle Leber at 10:35 on 4 Feb 2017

Great job Chris!
The Kata exercises were very useful.

Eric Morris at 10:48 on 4 Feb 2017

Great tutorial Chris. My only issue was the time given to code the katas seemed a little short. Given you usually did this tutorial in 5 hours vs. 3, this is understandable though.

David W. at 13:30 on 4 Feb 2017

Thanks for sharing. I am an independent developer. Not sure 40% more time spent is worth the benefit. Just saying...

Joseph Leedy at 13:46 on 4 Feb 2017

Excellent talk. Glad to hear from the master, thanks!

Liviu Ifrim at 17:29 on 4 Feb 2017

Nice and helpful tutorial. Thank you

Thomas Misilo at 11:39 on 5 Feb 2017

Awesome tutorial, and very easy to follow along. Very passionate about testing.

Symeon Quimby at 11:22 on 6 Feb 2017

Great Workshop. Perfect primer for Unit Testing. Already starting to implement what I learned into my daily routine.

Lawrence Shea at 13:04 on 7 Feb 2017

Very well done!