Workshop in English - UK at PHP Yorkshire 2018
View Slides: https://luka.muzinic.net/pdf/phpyorkshire-pragmatic-tdd.pdf
Checkout the code: https://github.com/lmuzinic/phpyorkshire-pragmatic-tdd
Short URL: https://joind.in/talk/ea2ab (QR-Code (opens in new window))
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...).