Developers still hesitate to include writing tests in their everyday routine. There are numerous excuses, myths and misconceptions around: “they slow us down”, “we’ll never achieve 100% code coverage, so why bother”, “takes too much time to learn testing, we’re better of writing business logic instead”. When we get to the topic of writing tests first, the debate becomes even more heated.

In real world, where you get paid by code that ships, developer strive to write the most efficient tests possible. To cover mission critical code. To quickly decide whether writing a functional test or series of unit tests is the best approach. Let us learn together how to use phpunit and TDD in most efficient way possible, for extraordinary results.

This workshop is for developers who start their projects by drawing model of the database first, developers who are overwhelmed by number of testing tools or don’t know where to start and developers who simply want to level up their game.

This workshop is framework agnostic, using what is available via composer/packagist. Main tool that is going to be used is phpunit, but knowledge can easily be translated to others (phpspec, codeception...).

Comments

Comments are closed.

Very good introduction to TDD, Luka gave us some experience going through an example using TDD, I feel like I learned a lot and can't wait to try it at work. The only thing was that sometimes I couldn't listen to all the explanations because it was required to write a lot of boilerplate code, I would suggest cutting the amount of boilerplate code the attendees write, limiting it only to the fun part (writing the logic).

Rated 4

Pim Elshoff at 12:39 on 13 Apr 2018

Very good testing primer with a challenging example codebase. Luka obviously knows his stuff and is comfortable in front of the group.

The workshop was a nice mix. First a wider, high level approach, then a deeper, low level approach. I would have liked to see and hear more about tests and confidence; run tests often to make sure you *stay* on the path, and not just back to the path often.

To make this a 5/5 for me, polish it up more and send the audience off with homework to keep them on the testing path.

Luka Mužinić (Speaker) at 14:23 on 13 Apr 2018

Awesome feedback! Thanks a lot!

Loved the approach and guidance in to the testing. We started with a simple test and some explanation. Next up was deeper level testing.

The explanation was done well and it showed you know your stuff.

Would have loved some homework / tips on things to discover about testing.

Good job!