PHPackages                             container-interop/definition-interop-tests - 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. container-interop/definition-interop-tests

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

container-interop/definition-interop-tests
==========================================

Test suite that validates whether a container is compatible with definition-interop.

v0.1.0(10y ago)0129↓80%2[1 issues](https://github.com/container-interop/definition-interop-tests/issues)[2 PRs](https://github.com/container-interop/definition-interop-tests/pulls)1MITPHP

Since Nov 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/container-interop/definition-interop-tests)[ Packagist](https://packagist.org/packages/container-interop/definition-interop-tests)[ RSS](/packages/container-interop-definition-interop-tests/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (1)

definition-interop compiler's test suite
========================================

[](#definition-interop-compilers-test-suite)

Modules (aka packages or bundles) are widespread in modern frameworks. Unfortunately each framework has its own convention and tools for writing them. The goal of *container-interop* and more specifically *definition-interop* is to help developers write modules that can work in any framework.

*definition-interop* contains interfaces helping developers describe container definitions (objects that can be cast to a container entry).

This package contains a set of test suites that can be used to ensure that a container/compiler is indeed compatible with definition-interop.

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

[](#installation)

```
composer require --dev container-interop/definition-interop-tests:dev-master

```

How does it work?
-----------------

[](#how-does-it-work)

This package contains a number of definition instances, and the associated PHPUnit tests that should match those instances.

Container / compilers compatible with *container-interop* should be able to pass any of those tests.

Usage
-----

[](#usage)

This package contains a `AbstractDefinitionCompatibilityTest` class. This is an abstract PHPUnit test class. In your package, you should extend this class and implement the `compileDefinitions` method. This method should return a container-interop compatible container.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.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

Unknown

Total

1

Last Release

3866d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://www.gravatar.com/avatar/329a6111724074f5388e95dd41a03ccf3c43f4bfe1ecf27c94c9efc6f7823228?d=identicon)[mnapoli](/maintainers/mnapoli)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (8 commits)")[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (2 commits)")[![keithmifsud](https://avatars.githubusercontent.com/u/2071560?v=4)](https://github.com/keithmifsud "keithmifsud (1 commits)")

### Embed Badge

![Health badge](/badges/container-interop-definition-interop-tests/health.svg)

```
[![Health](https://phpackages.com/badges/container-interop-definition-interop-tests/health.svg)](https://phpackages.com/packages/container-interop-definition-interop-tests)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k42.5M39.3k](/packages/orchestra-testbench)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M324](/packages/drupal-core-dev)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

30314.4k7](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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