Training · Orientation

PHPUnit 14 Unwrapped

A year of PHPUnit in two hours: what is new, why it changed, and what to look out for when you upgrade

Every February, a new major version of PHPUnit is released. In two free hours, Sebastian unwraps a year of PHPUnit with you: what is new, why it changed, and what to look out for when you upgrade.

  • Scope 1 session of 2 hours
  • Format Live via Zoom
  • Language English
  • Price per person free of charge

What it is about

Every February, a new major version of PHPUnit is released. On 5 February 2027, it is PHPUnit 14. Together with the minor releases of the past year, that is a lot of change: new features that make your tests easier to write, read, and run, and old features that are now gone.

One week after the release, Sebastian unwraps it all with you in a free live session. He shows you the highlights in live coding, tells you why they were built the way they are, and shows you what you need to look out for when you upgrade. You help decide what to look at first, and you can ask questions at any time.

Two hours do not allow for depth. But you will leave knowing what is new, what is worth a closer look for your project, and what stands between your test suite and PHPUnit 14.

How the session works

You see every new feature in live coding on a small example, with the problem it solves and the reason for its design. Where a feature deserves more than two hours allow, you learn which training course goes deeper. A poll at the start asks which version of PHPUnit you use and what keeps you from upgrading; the answers decide how much time the upgrade gets. A second poll decides which new features of the major version come first.

You see the upgrade from start to finish on an example project, but you do not practise it here. There is nothing to install, and you do not code along.

Programme

  1. Session 1: PHPUnit 14 Unwrapped

    What is new, why did it change, and what stands between your test suite and PHPUnit 14?

    • A poll to start with: which version of PHPUnit do you use, and what keeps you from upgrading?
    • The year in PHPUnit 13: the highlights of the minor releases, shown live, each with the problem it solves
    • New in PHPUnit 14, in the order you choose in a poll
    • Why it changed: the motivation behind the decisions, with a look at the discussions in issues and pull requests
    • Deprecated and removed: matchers, methods, and options such as any() that are gone, methods that are deprecated, and changed behaviour, plus changed events for extensions
    • Live: an example project on its way from PHPUnit 13 to PHPUnit 14, from the PHPUnit deprecations to --migrate-configuration
    • Your questions, answered live

    Result: An overview of the new features of the year, one new feature you want to try in your test suite first, and the steps for your upgrade to PHPUnit 14

Who it is for

  • Developers who use PHPUnit and want to know what the new version brings
  • Teams who are planning their upgrade to PHPUnit 14
  • Tech leads who decide when and how to upgrade
  • Maintainers of extensions and tools that build on PHPUnit

Prerequisites

  • Experience with PHPUnit, in any version
  • No preparation and no installation: you watch, vote, and ask

What you take away

  • You see the most important improvements of the past year in action
  • You understand why PHPUnit changed the way it did
  • You know what to look out for when you upgrade to PHPUnit 14
  • You know which topics deserve a closer look for your project

Your trainer

Sebastian Bergmann answering a participant's question at the laptop
Photo: Filip Kovačević

Sebastian Bergmann 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.