Command Palette

Search for a command to run...

position in category
#5

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:

  • Rich assertion library for types, equality, identity, and cardinality
  • Built-in stubs and mock objects for isolating units under test
  • Code coverage reporting via Xdebug or PCOV
  • Test grouping and filtering for selective execution in CI or locally
  • XML or filesystem-based test suite configuration
  • TestDox output for human-readable test documentation

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.

GitHub Repositories
827
-5.2%
Trending down this week
Removed in 45 repos