sebastianbergmann/phpunit

The PHP Unit Testing framework.

View on GitHub ↗Jump to charts ↓Open shareable report →

sebastianbergmann/phpunit has 20k+ stars and 2k+ forks on GitHub, is written in PHP, and was last pushed on Oct 15, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 3 hours ago
Added to GitGenius on September 2nd, 2026
Created on December 24th, 2009
Open Issues & Pull Requests: 22 (-2)
GitHub issues: Enabled
Number of forks: 2,214
Total Stargazers: 20,062 (+1)
Total Subscribers: 305 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 1.1 hours
Mean response time: 33.4 days
90th percentile: 41.4 days
Tracked items: 4,017

Maintainer activity

3 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 11, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits.

How this project is maintained

Practically every issue opened in the past year has drawn a reply. 93% of issues opened in the past year have since been closed. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 16
New in 7 days: 7
Closed in 7 days: 7
Avg open age: 208 days
Stale 30+ days: 12
Stale 90+ days: 12

Recent activity

Opened in 7 days: 6
Closed in 7 days: 6
Comments in 7 days: 2
Events in 7 days: 30

Top labels

  • type/bug (831)
  • type/enhancement (548)
  • feature/test-runner (368)
  • feature/test-doubles (214)
  • version/10 (190)
  • type/backward-compatibility (175)
  • feature/assertion (141)
  • feature/code-coverage (103)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

PHPUnit is a programmer-oriented testing framework for PHP that implements the xUnit architecture for unit testing.

PHPUnit addresses the need for structured unit testing in PHP applications by providing a framework where developers write test cases that verify individual components of their code in isolation. The framework follows the xUnit pattern, a proven approach used across many programming languages, allowing developers familiar with testing frameworks in other languages to work productively in PHP. Tests are organized into classes and methods, with assertions used to verify expected behavior.

PHPUnit suits any PHP project where developers want to ensure code quality and catch regressions early. It is particularly valuable for teams building libraries, frameworks, or applications where test coverage matters. The tool supports installation via PHAR distribution with bundled dependencies for simplicity, or through Composer for projects already using dependency management. The framework integrates with standard PHP tooling and workflows.

The project maintains a modular architecture with a core testing framework supported by specialized components for code coverage analysis, file iteration, timing, templating, and type detection. Development is organized around a primary maintainer with a documented contribution process and a comprehensive manual. The ecosystem includes multiple supporting packages that handle specific concerns like diff generation, object reflection, and complexity analysis, allowing developers to adopt individual components as needed alongside the main framework.