# symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

Repository: https://github.com/symfony/phpunit-bridge
Canonical: https://ross.abutalabs.com/products/phpunit-bridge
Homepage: https://symfony.com/phpunit-bridge
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component, testing
Last push: 2026-08-22T13:47:23+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4211, "days_push": 11, "days_rel": 11, "gap_med": 0.0, "n_releases_24m": 39}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2463, forks 47 (observed 2026-08-28T04:06:53.557215+00:00)

## What it is
A Symfony component providing utilities for PHPUnit, most notably management and reporting of user deprecation notices. It also offers ClockMock, DnsMock, and ClassExistsMock helpers, parallel test running, and polyfills for running tests across multiple PHPUnit versions.

## Use cases
- track and report php deprecation notices in my test suite
- mock time and clock functions in phpunit tests
- run phpunit tests in parallel
- make my test suite compatible with multiple phpunit versions
- mark legacy tests that trigger deprecations
- mock dns resolution in tests
- fail tests when deprecated code is used

## When to choose
- you maintain a PHP library or Symfony app and want visibility into deprecation usage
- you need deterministic tests for time-, DNS-, or class-existence-sensitive code
- you want one test setup that works across several PHPUnit versions

## When to avoid
- you are not using PHPUnit for testing
- you need a general-purpose mocking framework for arbitrary classes rather than native function mocks

## Facets
- artifact type: library
- maturity: stable
- function: testing, e2e-testing, mocking, logging
- domain: testing, developer-tools
- platform: php, cli, cross-platform
- tags: phpunit, deprecation-notices, symfony, clock-mocking, dns-mocking, test-utilities, composer, php

## Member repositories
- symfony/phpunit-bridge (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.557215+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:29:17.455874+00:00, confidence not recorded.
  - readme: https://github.com/symfony/phpunit-bridge (fetched 2026-08-28T04:06:53.557215+00:00, sha 63fff8fec7f9)
  - homepage: https://symfony.com/phpunit-bridge (fetched 2026-08-29T10:10:51.437450+00:00, sha ac62ec27a4d4)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T10:10:51.440167+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/components/phpunit_bridge.html (fetched 2026-08-29T10:10:51.442293+00:00, sha fd0b372cd9cd)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T10:10:51.445572+00:00, sha 2fd410222cfe)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T10:10:51.447587+00:00, sha b626b5bb1423)
- Data as of 2026-08-30T08:39:29.467469+00:00.
