infection/phpspec-adapter

PHPSpec Test Framework Adapter for Infection

Maintainers

Package info

github.com/infection/phpspec-adapter

Type:infection-extension

pkg:composer/infection/phpspec-adapter

Fund package maintenance!

infection

Open Collective

Statistics

Installs: 155 742

Dependents: 31

Suggesters: 0

Stars: 3

Open Issues: 5

0.3.0 2026-01-06 09:35 UTC

README

This package provides the test framework adapter of PHPSpec for infection.

Architecture

Installation

In a standard usage, infection should detect phpspec/phpspec being used and leverage its infection/extension-installer to install this package.

Otherwise, you can still install it as usual:

composer require --dev infection/phpspec-adapter

The adapter will be automatically registered in Infection's runtime through its auto-discovery mechanism.

Usage

Once installed, you can run Infection:

vendor/bin/infection # optional: --test-framework=phpspec

Infection will automatically detect and use the PHPSpec adapter when PHPSpec is configured in your project.

Configuration

The adapter works with your existing PHPSpec configuration. No additional configuration is required beyond the standard Infection configuration file infection.json5.dist.

For more information on configuring Infection, see the Infection documentation.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

License

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