
PHPUnit: The PHP Testing Framework
Feb 3, 2023 · Welcome to PHPUnit! PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
Documentation for PHPUnit
On this page you will find the documentation for the different versions of PHPUnit.
Getting Started with Version 9 of PHPUnit
This tutorial assumes that you use PHP 7.3 or PHP 7.4. You will learn how to write simple unit tests as well as how to download and run PHPUnit 9.
Getting Started with Version 10 of PHPUnit
This tutorial assumes that you use PHP 8.1. You will learn how to write simple unit tests as well as how to download and run PHPUnit 10.
Getting Started with Version 12 of PHPUnit
This tutorial assumes that you use PHP 8.3 or PHP 8.4. You will learn how to write simple unit tests as well as how to download and run PHPUnit 12.
Getting Started with Version 11 of PHPUnit
This tutorial assumes that you use PHP 8.2 or PHP 8.3. You will learn how to write simple unit tests as well as how to download and run PHPUnit 11.
Getting Started with Version 8 of PHPUnit
This tutorial assumes that you use PHP 7.2. You will learn how to write simple unit tests as well as how to download and run PHPUnit 8.
PHPUnit Manual — PHPUnit 12.4 Manual
Oct 20, 2025 · PHPUnit Manual Edition for PHPUnit 12.4. Updated on Oct 20, 2025. Sebastian Bergmann This work is licensed under the Creative Commons Attribution 3.0 Unported License. …
Supported Versions of PHPUnit
Feb 3, 2023 · The fact that a version of PHPUnit supports a specific PHP version means that this version of PHPUnit works on that PHP version for PHP code that is compatible with the version of …
Getting Started with Version 4 of PHPUnit
You will learn how to write simple unit tests as well as how to download and run PHPUnit 4, the latest version of PHPUnit that is compatible with PHP 5.3, PHP 5.4, and PHP 5.5.