PHPackages                             tdd-guard/phpunit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. tdd-guard/phpunit

ActiveLibrary[Testing &amp; Quality](/categories/testing)

tdd-guard/phpunit
=================

PHPUnit reporter for TDD Guard

0.1.3(6mo ago)22.4k↑60.5%1MITPHPPHP &gt;=8.1

Since Jul 30Pushed 6mo agoCompare

[ Source](https://github.com/nizos/tdd-guard-phpunit)[ Packagist](https://packagist.org/packages/tdd-guard/phpunit)[ Docs](https://github.com/nizos/tdd-guard)[ RSS](/packages/tdd-guard-phpunit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

TDD Guard PHPUnit Reporter
==========================

[](#tdd-guard-phpunit-reporter)

PHPUnit reporter that captures test results for TDD Guard validation.

Requirements
------------

[](#requirements)

- PHP 8.1+
- PHPUnit 9.0+ or 10.0+ or 11.0+ or 12.0+
- [TDD Guard](https://github.com/nizos/tdd-guard) installed globally

Installation
------------

[](#installation)

```
composer require --dev tdd-guard/phpunit
```

Configuration
-------------

[](#configuration)

### PHPUnit 10+ Configuration

[](#phpunit-10-configuration)

Add the extension to your `phpunit.xml`:

```

            tests

```

### PHPUnit 9.x Configuration

[](#phpunit-9x-configuration)

Add the listener to your `phpunit.xml`:

```

            tests

                /absolute/path/to/project/root

```

### Project Root Configuration

[](#project-root-configuration)

Set the project root using any ONE of these methods:

**Option 1: PHPUnit Configuration (Recommended)**

Use the `projectRoot` parameter in your `phpunit.xml` (see examples above).

**Option 2: Environment Variable**

```
export TDD_GUARD_PROJECT_ROOT=/absolute/path/to/project/root
```

**Option 3: Automatic Detection**

If not configured, the reporter will:

- Use the directory containing `phpunit.xml`
- Fall back to current working directory

### Configuration Rules

[](#configuration-rules)

- Path must be absolute
- Falls back to current directory if configuration is invalid

More Information
----------------

[](#more-information)

- Test results are saved to `.claude/tdd-guard/data/test.json`
- See [TDD Guard documentation](https://github.com/nizos/tdd-guard) for complete setup

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~31 days

Total

4

Last Release

198d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d161180511b84361185d9161487c01468ee8a6c381281e81dff751a9e2c65168?d=identicon)[nizos](/maintainers/nizos)

---

Top Contributors

[![nizos](https://avatars.githubusercontent.com/u/16970186?v=4)](https://github.com/nizos "nizos (6 commits)")[![wazum](https://avatars.githubusercontent.com/u/146727?v=4)](https://github.com/wazum "wazum (2 commits)")

---

Tags

testingphpunitTDDclaudetest-driven-development

###  Code Quality

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tdd-guard-phpunit/health.svg)

```
[![Health](https://phpackages.com/badges/tdd-guard-phpunit/health.svg)](https://phpackages.com/packages/tdd-guard-phpunit)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M397](/packages/codedungeon-phpunit-result-printer)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69617.9M510](/packages/spatie-phpunit-snapshot-assertions)[yoast/phpunit-polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

18438.5M841](/packages/yoast-phpunit-polyfills)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
