DPC2020: My Top 10 PHPUnit Tips & Tricks - Juliette Reinders Folmer
Description
Of course you test your code... you may even use test driven development. But do those tests really add value ? Are your tests actually testing your code? Or are they just there to satisfy the CI process ?
In this talk Juliette will focus on all the things she's learned in years of writing and reviewing tests, the pitfalls she fell into, and the tips and tricks she learned along the way.
What you'll learn from this talk:
- Learn how to improve your test setup,
- what assertions to use when,
- why data providers are incredibly useful and
- how to make your tests more descriptive and easier to debug.
This talk was given at the Dutch PHP Conference in 2020, organised and hosted by Ibuildings. Visit https://phpconference.nl or https://ibuildings.nl for more information.k
Comments