Interactive online training
Are your tests slow, fragile, or hard to understand? Learn proven strategies for solving exactly these problems systematically. First-hand: from Sebastian Bergmann, the creator of PHPUnit.
The idea
Do your tests run too slowly because they access the database or the file system? Do you have fragile tests that are green one time and red the next, without anything having changed? Or are your tests so hard to understand that nobody dares to touch them?
These problems have causes. And they have proven solutions:
Tests that access the database or the file system cost you time on every run. Targeted isolation makes them fast.
Green one time, red the next, without a change to the code. Clean test isolation and correctly used test doubles make tests reliable.
Tests that nobody dares to touch help nobody. Readable tests document what your code is supposed to do.
In this training you learn how to isolate dependencies with PHPUnit in a targeted way, use test doubles correctly, and use code coverage as a tool rather than an end in itself. Afterwards you know how to make your tests fast, stable, and readable. And how to keep them that way.
From the contents
Six sessions of two hours each, live and interactive. With plenty of room for your questions from everyday project work.
Why shared fixtures and missing isolation lead to fragile tests. And how you prevent that.
Verifying communication between objects in a targeted way.
When a test stub is enough and when you really need a mock object.
Testing the database, the file system, email, and other side effects cleanly.
Interpreting reports correctly, setting sensible goals, and understanding what coverage really tells you.
What PHPUnit tells you about the quality of your tests.
Eliminating mystery guests, cryptic assertions, and other obstacles to understanding.
Strategies for faster execution in everyday project work.
Who it is for
This training is aimed at developers who already use PHPUnit but struggle with slow, fragile, or hard to maintain tests. If you have the feeling that your test suite is slowing you down instead of backing you up, you are in the right place.
A very informative and helpful training with many anecdotes from real life. The questions that were submitted were addressed at length and answered in great detail.
Your trainer
Sebastian is the creator of PHPUnit, the de facto standard for testing PHP code. As a consultant, trainer, and co-founder of thePHP.cc he has been helping teams build maintainable and well-tested software for more than two decades.
You learn PHPUnit first-hand here: from the person who wrote it. Live, with answers to your questions and anecdotes from real projects.
Registration
Six interactive live sessions of two hours each, as a Zoom meeting. Small group, your questions, concrete answers.