PHPackages                             infection/abstract-testframework-adapter - 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. infection/abstract-testframework-adapter

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

infection/abstract-testframework-adapter
========================================

Abstract Test Framework Adapter for Infection

0.5.1(1mo ago)2527.0M↓31.9%3[1 PRs](https://github.com/infection/abstract-testframework-adapter/pulls)5BSD-3-ClausePHPPHP ^8.3CI passing

Since Dec 25Pushed 5d ago5 watchersCompare

[ Source](https://github.com/infection/abstract-testframework-adapter)[ Packagist](https://packagist.org/packages/infection/abstract-testframework-adapter)[ GitHub Sponsors](https://github.com/infection)[ Fund](https://opencollective.com/infection)[ RSS](/packages/infection-abstract-testframework-adapter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (14)Used By (5)

Abstract TestFramework Adapter for Infection
============================================

[](#abstract-testframework-adapter-for-infection)

This package provides the shared abstractions used by [Infection](https://infection.github.io) test framework adapters.

 ```
graph TB
    Project["Any project that uses Infection"]
    Infection["infection/infection"]
    AbstractAdapter["infection/abstract-testframework-adapterTestFrameworkAdapter"]
    PhpspecAdapter["infection/phpspec-adapter"]
    CodeceptionAdapter["infection/codeception-adapter"]
    OtherAdapters["Other test framework adapters..."]

    Project --> Infection
    Project -.-> PhpspecAdapter
    Project -.-> CodeceptionAdapter
    Infection --> AbstractAdapter
    Infection --> PhpspecAdapter
    Infection --> CodeceptionAdapter
    Infection --> OtherAdapters
    PhpspecAdapter --> AbstractAdapter
    CodeceptionAdapter --> AbstractAdapter
    OtherAdapters --> AbstractAdapter

    style AbstractAdapter fill:#e1f5fe
    style Infection fill:#f9f9f9
    style PhpspecAdapter fill:#f9f9f9
    style CodeceptionAdapter fill:#f9f9f9
    style OtherAdapters fill:#f9f9f9,stroke-dasharray: 5 5
```

      Loading Please read documentation here: [infection.github.io](http://infection.github.io)

- Twitter: [@infection\_php](http://twitter.com/infection_php)
- Mastodon: [@infection\_php](https://mastodon.social/@infection_php)
- Discord:
- [Playground](https://infection-php.dev/) - try it right in your browser!

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

[](#installation)

This package is meant to be used by Infection test framework adapters. In a standard usage, it is installed as a dependency of a concrete adapter such as [`infection/phpspec-adapter`](https://packagist.org/packages/infection/phpspec-adapter) or [`infection/codeception-adapter`](https://packagist.org/packages/infection/codeception-adapter).

If you are building a custom adapter, you can install it as usual:

```
composer require infection/abstract-testframework-adapter
```

Usage
-----

[](#usage)

Implement [`TestFrameworkAdapter`](./src/TestFrameworkAdapter.php) and [`TestFrameworkAdapterFactory`](./src/TestFrameworkAdapterFactory.php)to expose a test framework integration to Infection.

The concrete adapter is responsible for translating Infection's test execution requests into the target test framework commands and for returning the collected test locations.

For more information on configuring Infection, see the [Infection documentation](https://infection.github.io/guide/usage.html#Configuration).

Contributing
------------

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details.

License
-------

[](#license)

This project is licensed under the BSD 3-Clause License. See the [LICENSE](LICENSE) file for details.

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance96

Actively maintained with recent releases

Popularity58

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~553 days

Total

11

Last Release

36d ago

PHP version history (4 changes)0.3.0PHP ^7.3

0.3.1PHP ^7.3 || ^8.0

0.5.0PHP ^7.4 || ^8.0

0.5.1PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0196ce472ed16a55b72aa7f9f9956bc6e68fa519abf975caffc9fcb5fa320df?d=identicon)[borN\_free](/maintainers/borN_free)

---

Top Contributors

[![maks-rafalko](https://avatars.githubusercontent.com/u/3725595?v=4)](https://github.com/maks-rafalko "maks-rafalko (17 commits)")[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (13 commits)")[![sanmai](https://avatars.githubusercontent.com/u/139488?v=4)](https://github.com/sanmai "sanmai (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![kubawerlos](https://avatars.githubusercontent.com/u/9282069?v=4)](https://github.com/kubawerlos "kubawerlos (3 commits)")[![sidz](https://avatars.githubusercontent.com/u/1302230?v=4)](https://github.com/sidz "sidz (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/infection-abstract-testframework-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/infection-abstract-testframework-adapter/health.svg)](https://phpackages.com/packages/infection-abstract-testframework-adapter)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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