infection/phpspec-adapter

PHPSpec Test Framework Adapter for Infection

Fund package maintenance!
infection
Open Collective

Installs: 150 136

Dependents: 32

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Type:infection-extension

pkg:composer/infection/phpspec-adapter

0.2.2 2024-08-17 10:19 UTC

README

This package provides the test framework adapter 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 with PHPSpec:

vendor/bin/infection --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.json.dist or infection.json).

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.