Open links in new tab
  1. 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.

  2. 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.

  3. Documentation for PHPUnit

    On this page you will find the documentation for the different versions of PHPUnit.

  4. PHPUnit Manual — PHPUnit 12.5 Manual

    Jan 15, 2026 · PHPUnit Manual Edition for PHPUnit 12.5. Updated on Jan 15, 2026. Sebastian Bergmann This work is licensed under the Creative Commons Attribution 3.0 Unported License. …

  5. Release Announcement for Version 12 of PHPUnit

    Feb 7, 2025 · The PHPUnit development team is pleased to announce the immediate availability of PHPUnit 12. This release adds new features, changes and removes existing features, and fixes bugs.

  6. Getting Started with Version 6 of PHPUnit

    This tutorial assumes that you use PHP 7.0. You will learn how to write simple unit tests as well as how to download and run PHPUnit 6.

  7. 2. Writing Tests for PHPUnit — PHPUnit 12.5 Manual

    PHPUnit supports the declaration of explicit dependencies between test methods. Such dependencies do not define the order in which the test methods are to be executed but they allow the returning of …

  8. 4. The XML Configuration File — PHPUnit 12.5 Manual

    This attribute configures whether the PHPUnit test runner should exit with a shell exit code that indicates failure when all tests are successful but PHPUnit deprecations were triggered.

  9. 4. Organizing Tests — PHPUnit 12.5 Manual

    One of the goals of PHPUnit is that tests should be composable: we want to be able to run any number or combination of tests together, for instance all tests for the whole project, or the tests for all classes …

  10. 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 …