
About PHPUnit
PHPUnit is a testing framework for software written in PHP. It automates unit tests so you can keep code working as it changes.
What it does
PHPUnit runs test classes and reports which tests pass or fail. Developers write test methods with assertions, run them from the command line, and add them to a continuous integration pipeline. The project publishes announcements for each major release and documentation for each supported version.
Key features
- Assertions to check values, types and results
- Command line test runner
- Test doubles for replacing dependencies
- Documentation for each supported version
- Announcements for each major release
Who it's for
PHP developers and teams who want automated tests in their build process. Teams planning an upgrade can check the supported versions page first, since it lists which PHPUnit releases are current.
Pricing and good to know
PHPUnit is free and open source under the BSD-3-Clause license. It runs on PHP and is usually installed with Composer. The current stable release is PHPUnit 13. The project also offers consulting and coaching services for teams that need help.
Highlights
- Assertions to check values, types and results
- Command line test runner
- Test doubles for replacing dependencies
- Documentation for each supported version
- Announcements for each major release












