PHPackages                             richcongress/test-framework - 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. richcongress/test-framework

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

richcongress/test-framework
===========================

A Test framework that uses the PHPUnit Extension with priorities

v0.2.0(1y ago)039.4k↓43.3%1[1 issues](https://github.com/rich-id/test-framework/issues)2MITPHPPHP ^8.1

Since Feb 4Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/rich-id/test-framework)[ Packagist](https://packagist.org/packages/richcongress/test-framework)[ RSS](/packages/richcongress-test-framework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (8)Used By (2)

Test framework
==============

[](#test-framework)

[![Package version](https://camo.githubusercontent.com/e17ab87ad64dd7395e5e255654ce999feb45c416774cf2b73a7f6ac81b7c570d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4e69636f6c61734775696c6c6f75782f746573742d6672616d65776f726b)](https://packagist.org/packages/NicolasGuilloux/test-framework)[![Actions Status](https://github.com/NicolasGuilloux/test-framework/workflows/Tests/badge.svg)](https://github.com/t/NicolasGuilloux/test-framework/actions)[![Coverage Status](https://camo.githubusercontent.com/0986eb82bbd12e2cf1447b966d46def81eecc7af9dafe58bb677d5e57e143c82/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4e69636f6c61734775696c6c6f75782f746573742d6672616d65776f726b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/NicolasGuilloux/test-framework?branch=master)[![Maintainability](https://camo.githubusercontent.com/968e1ed9e7a0eceebb2a264539a8bcbd13c94b17d7b1a5d730f11715af464751/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33613066333837623132373238383830343065372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/NicolasGuilloux/test-framework/maintainability)[![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/NicolasGuilloux/test-framework/issues)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

[![PHP 7](https://camo.githubusercontent.com/f13cc5baf57b8e115f484fde3c7ade83b2a814edc6940da54ec35bac43eb3faf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332532422d79656c6c6f77)](https://camo.githubusercontent.com/f13cc5baf57b8e115f484fde3c7ade83b2a814edc6940da54ec35bac43eb3faf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332532422d79656c6c6f77)[![PHP 8](https://camo.githubusercontent.com/f2ff7d62bf0c2700f183b977ccb28f19f64d28a5c86c11ea90fd3bbd1a43f259/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d79656c6c6f77)](https://camo.githubusercontent.com/f2ff7d62bf0c2700f183b977ccb28f19f64d28a5c86c11ea90fd3bbd1a43f259/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d79656c6c6f77)

This library is a test framework that works with PHPUnit to provide similar behaviour than hooks within extensions but with the notion of priority to improve their interactions.

Table of content
----------------

[](#table-of-content)

- [Test framework](#test-framework)
    - [1. Installation](#installation)
    - [2. Getting started](#getting-started)
    - [3. Versioning](#versioning)
    - [4. Contributing](#contributing)
    - [5. Hacking](#hacking)
    - [6. License](#license)

1. Installation
---------------

[](#1-installation)

This version of the bundle requires Symfony 6.0+ and PHP 8.1+.

```
composer require richcongress/test-framework
```

2. Getting started
------------------

[](#2-getting-started)

The first thing to do is adding the PHPUnitExtension in your `phpunit.xml.dist` like following:

```

            TestHookClassName

```

You need to change add each TestHook as no solution has been found to automatically configure it.

To create a TestHook, simply use the `TestHookInterface` interface or extends your TestHook with the class `AbstractTestHook`, and then override the methods you want.

3. Versioning
-------------

[](#3-versioning)

template-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where 1. MAJOR is bumped when there is a breaking change, 2. MINOR is bumped when a new feature is added in a backward-compatible way, 3. PATCH is bumped when a bug is fixed in a backward-compatible way.

Versions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.

4. Contributing
---------------

[](#4-contributing)

Contributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:

- [Bug Reports](https://github.com/richcongress/test-framework/issues): While we strive for quality software, bugs can happen and we can’t fix issues we’re not aware of. So please report even if you’re not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!
- [Feature Request](https://github.com/richcongress/test-framework/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We’d be glad to read about it and start a discussion to try to find the best possible solution.
- [Pull Request](https://github.com/richcongress/test-framework/merge_requests): Want to contribute code or documentation? We’d love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the ["fork and pull model"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personnal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.

As a reminder, all contributors are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).

5. Hacking
----------

[](#5-hacking)

You might use Docker and `docker-compose` to hack the project. Check out the following commands.

```
# Start the project
docker-compose up -d

# Install dependencies
docker-compose exec application composer install

# Run tests
docker-compose exec application bin/phpunit

# Run a bash within the container
docker-compose exec application bash
```

6. License
----------

[](#6-license)

template-bundle is distributed under the terms of the MIT license.

See [LICENSE](LICENSE.md) for details.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance61

Regular maintenance activity

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.7% 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 ~243 days

Recently: every ~268 days

Total

6

Last Release

715d ago

PHP version history (4 changes)v0.1.0PHP &gt;=7.3

v0.1.1PHP &gt;=8.0

v0.1.2.x-devPHP ^7.1|^8.0

v0.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bfb5e4a3dde826e4cd3f92d24fdfbdce1415c77f3edd38fc3420b4988977e13?d=identicon)[HugoDumazeau](/maintainers/HugoDumazeau)

![](https://www.gravatar.com/avatar/8084ee0162a85df3b3f49230b8c0dde81108195caa541bb00642cbd050e88b25?d=identicon)[hudumazeau](/maintainers/hudumazeau)

---

Top Contributors

[![NicolasGuilloux](https://avatars.githubusercontent.com/u/4090627?v=4)](https://github.com/NicolasGuilloux "NicolasGuilloux (26 commits)")[![mdevlamynck](https://avatars.githubusercontent.com/u/4378377?v=4)](https://github.com/mdevlamynck "mdevlamynck (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/richcongress-test-framework/health.svg)

```
[![Health](https://phpackages.com/badges/richcongress-test-framework/health.svg)](https://phpackages.com/packages/richcongress-test-framework)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)

PHPackages © 2026

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