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.3.1(1w ago)16.2k↑56%1[2 issues](https://github.com/MatesOfMate/phpunit-extension/issues)MITPHPPHP &gt;=8.2CI failing

Since Jan 26Pushed 3d 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 2d ago

READMEChangelogDependencies (28)Versions (5)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

41

—

FairBetter than 87% of packages

Maintenance79

Regular maintenance activity

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~49 days

Total

4

Last Release

11d 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

[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.2k28.9M2.4k](/packages/infection-infection)[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/packages/brianium-paratest)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[phpbench/phpbench

PHP Benchmarking Framework

2.0k14.6M848](/packages/phpbench-phpbench)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15312.0M36](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

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