Search for a command to run...
Programmer-oriented testing framework for PHP implementing the xUnit architecture. Provides assertions, test doubles, fixtures, and a command-line runner for writing and executing unit tests across PHP applications.
Created by Sebastian Bergmann and widely adopted as the de facto standard for PHP testing. Used across the ecosystem by frameworks such as Laravel and Symfony. Compared to tools like Codeception or Pest, it focuses on pure unit testing with a minimal, assertion-first API rather than BDD-style syntax.
Key capabilities:
Common applications: unit testing classes and methods in libraries or applications, TDD and BDD workflows, and integration into CI pipelines. Installs via Composer or standalone PHAR, and fits into any PHP project structure with minimal setup.