PHPUnit
The PHP Unit Testing framework. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 6096
- days_rel: 20
- days_push: 7
- n_releases_24m: 242
Adoption not part of the score
20045 stars · 2222 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PHPUnit is the de facto unit testing framework for PHP, following the xUnit architecture. It provides a test runner, assertions, mocking, code coverage reporting, and a rich ecosystem of supporting components.
Use cases
- write unit tests for php code
- run automated tests in php projects
- generate code coverage reports
- mock dependencies in php tests
- set up continuous integration testing for php
- assert and compare php values in tests
When to choose
- you are testing any PHP codebase, from libraries to full applications
- you need an industry-standard xUnit-style framework with mature tooling and IDE support
- you want code coverage, mocking, and diff-based failure output out of the box
When to avoid
- you are testing JavaScript, Python, or other non-PHP languages
- you need browser-based end-to-end testing, which is better served by tools like Playwright or Cypress
Facets
framework · maturity stable
testing e2e-testing mocking cli testing developer-tools programming-languages php cli cross-platform xunit unit-testing code-coverage test-runner php
1 source
- readme: https://github.com/sebastianbergmann/phpunit · fetched 2026-08-28 · cec1c943dc6b
Member repositories
For agents
markdown · JSON · MCP: product_card(name="sebastianbergmann/phpunit")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem