sebastianbergmann/phpunit

The PHP Unit Testing framework.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 7 minutes ago
Added to GitGenius on September 2nd, 2026
Created on December 24th, 2009
Open Issues & Pull Requests: 23 (+0)
GitHub issues: Enabled
Number of forks: 2,219
Total Stargazers: 20,051 (+0)
Total Subscribers: 306 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 1.2 hours
Mean response time: 33.5 days
90th percentile: 42.2 days
Tracked items: 3,999

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 3% of issues opened in the past year have been closed. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 17
New in 7 days: 2
Closed in 7 days: 2
Avg open age: 210 days
Stale 30+ days: 13
Stale 90+ days: 11

Recent activity

Opened in 7 days: 2
Closed in 7 days: 1
Comments in 7 days: 1
Events in 7 days: 10

Top labels

  • type/bug (827)
  • type/enhancement (542)
  • feature/test-runner (362)
  • feature/test-doubles (212)
  • version/10 (190)
  • type/backward-compatibility (172)
  • feature/assertion (141)
  • feature/code-coverage (103)

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.