PHPackages                             matesofmate/phpunit-extension - 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. matesofmate/phpunit-extension

ActiveSymfony-ai-mate[Testing &amp; Quality](/categories/testing)

matesofmate/phpunit-extension
=============================

PHPUnit extension for symfony/ai-mate providing token-optimized test execution tools

0.4.0(1mo ago)18.1k↑56.4%1[2 issues](https://github.com/MatesOfMate/phpunit-extension/issues)MITPHPPHP &gt;=8.2CI failing

Since Jan 26Pushed 1mo agoCompare

[ Source](https://github.com/MatesOfMate/phpunit-extension)[ Packagist](https://packagist.org/packages/matesofmate/phpunit-extension)[ RSS](/packages/matesofmate-phpunit-extension/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (37)Versions (7)Used By (0)

PHPUnit Extension for Symfony AI Mate
=====================================

[](#phpunit-extension-for-symfony-ai-mate)

Token-efficient PHPUnit tools for AI assistants. This package runs tests and returns encoded structured responses designed for debugging and iteration.

Features
--------

[](#features)

- run the full suite, a file, a class, or a single method through one tool
- list discoverable tests
- encoded output with three consistent detail modes
- custom command support for containerized setups

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

[](#installation)

```
composer require --dev matesofmate/phpunit-extension
vendor/bin/mate init
```

In current AI Mate setups, extension discovery is handled automatically after Composer install and update. Run `vendor/bin/mate discover` when you want to refresh discovery artifacts such as `mate/AGENT_INSTRUCTIONS.md`.

Useful Mate commands:

```
vendor/bin/mate debug:extensions
vendor/bin/mate debug:capabilities
vendor/bin/mate mcp:tools:list --extension=matesofmate/phpunit-extension
```

Use the generated wrapper for Codex:

```
./bin/codex
```

Custom Command Configuration
----------------------------

[](#custom-command-configuration)

If PHPUnit must run through Docker or another wrapper command, configure `matesofmate_phpunit.custom_command`.

```
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $container): void {
    $container->parameters()->set('matesofmate_phpunit.custom_command', [
        'docker', 'compose', 'exec', 'php-test', 'vendor/bin/phpunit',
    ]);
};
```

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

[](#requirements)

- PHP 8.2+
- Symfony AI Mate 0.8+ required
- PHPUnit available locally, or a custom command configured

Available Tools
---------------

[](#available-tools)

- `phpunit-run`
- `phpunit-list-tests`

All tools return encoded strings through Mate's core `ResponseEncoder`. Install the suggested `helgesverre/toon` package if you want TOON responses; otherwise the same payload falls back to JSON.

Output Modes
------------

[](#output-modes)

- `default`
- `summary`
- `detailed`

Development
-----------

[](#development)

```
composer install
composer test
composer lint
composer fix
```

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance71

Regular maintenance activity

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~34 days

Recently: every ~23 days

Total

6

Last Release

34d ago

### Community

Maintainers

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

---

Top Contributors

[![wachterjohannes](https://avatars.githubusercontent.com/u/1464615?v=4)](https://github.com/wachterjohannes "wachterjohannes (20 commits)")

---

Tags

testingphpunitsymfonymcpaitoontest-automationai-mate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matesofmate-phpunit-extension/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.5k](/packages/laravel-framework)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k30.0M2.9k](/packages/infection-infection)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[brianium/paratest

Parallel testing for PHP

2.5k142.8M1.1k](/packages/brianium-paratest)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M236](/packages/sulu-sulu)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)

PHPackages © 2026

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