>_ phpunit.expert █

Interactive online training

Test Automation with PHPUnit

Your way into automated testing of PHP code. Learn PHPUnit from the ground up, with practical exercises. First-hand: from Sebastian Bergmann, the creator of PHPUnit.

Online via Zoom Live & interactive
4 sessions 2 hours each
PHP & PHPUnit From the ground up, with exercises
799 EUR included in the flat rate

The idea

Does your code really work?

You write PHP code, but you do not test it automatically yet? Or you already use AI agents that generate code. But how do you make sure that this code really works?

Automated tests are the answer, and they matter more the more of your code you did not write yourself:

Safety net

Tests catch defects before they reach production, and give you the confidence to change code.

Specification

Tests document in executable form what your code is supposed to do. For you, your team, and your tools.

A check on generated code

A coding agent delivers code and tests in one go. Whether those tests would notice a defect, you find out by breaking the code on purpose.

PHPUnit

PHPUnit is the standard tool for automated tests in PHP. In this training you learn it from the ground up: you find out how to set up PHPUnit, write your first tests, and step by step make even complex code testable. After this training you have the tool and the knowledge to use automated tests in your own project.

From the contents

From the first assertion to a safety net

Four sessions of two hours each, live and interactive. You write your own tests in practical exercises instead of just watching. The path leads from the fundamentals to tests that are still maintainable tomorrow.

  1. 01

    Why automated tests, and why now?

    Tests as a safety net, as a specification, and as a check on AI-generated code.

  2. 02

    Setting up PHPUnit

    Installation, configuration, and integration into your development workflow.

  3. 03

    Writing automated tests

    From the first assertion to a comprehensive test case.

  4. 04

    Testing complex code

    Getting objects with state and side effects under control.

  5. 05

    Testing independently of dependencies

    The fundamentals of test isolation.

  6. 06

    Best practices

    Tests that not only work, but are also readable and maintainable.

Who it is for

Your entry into automated testing

This training is aimed at PHP developers who want to make automated testing part of their daily work. Whether you have never written a test or want to take your first steps with PHPUnit: here you get the start you need. If you already write tests with PHPUnit and struggle with slow or fragile ones, Advanced PHPUnit is the better fit.

What you take away

  • You set up PHPUnit and integrate it into your development workflow
  • You write tests for your code on your own, practised in exercises during the training
  • You understand how to make even complex code with dependencies testable
  • You know the proven practices that keep your tests understandable and maintainable

What you bring

  • Several months of experience with PHP or a similar programming language
  • Familiarity with the basic concepts of procedural and object-oriented programming
  • A local PHP development environment for the practical exercises
  • Prior knowledge of testing is not required: we start at the very beginning
Clear explanations, wonderfully fleshed out with background knowledge, that make it pleasant to stay attentive even for a long time.
A participant of the training in September 2026 (translated)
The training helped me a lot to get started with unit tests and to better understand the reasoning behind them. I now know exactly how I should approach unit tests and also how to name and develop them. I also found the background on how PHPUnit came about very interesting. For anyone who wants to start with unit tests, this training is very good.
A participant of the training in May 2025 (translated)

Your trainer

Sebastian Bergmann

Sebastian Bergmann

Sebastian is the creator of PHPUnit, the de facto standard for testing PHP code. Since 2001 he has been helping teams build maintainable and well-tested software as a consultant and trainer, since 2009 as a co-founder of thePHP.cc.

You learn PHPUnit first-hand here: from the person who wrote it. Live, with practical exercises and answers to your questions.

Sebastian Bergmann explaining the output of PHPUnit at the screen
Sebastian explains the output of PHPUnit at a workshop. Photo: Filip Kovačević

Registration

799 EUR per person

Four interactive live sessions of two hours each, as a Zoom meeting. Small group, practical exercises, your questions.