infection/abstract-testframework-adapter
Interfaces and base classes for building Infection test framework adapters. Provides a common abstraction layer to integrate different PHP test runners with Infection’s mutation testing, making adapters consistent, reusable, and easier to implement.
HasSyntaxErrorDetection interface further reduces the need for bespoke solutions, making it a clear "buy" for projects already using Infection or planning to adopt it.ParseError exceptions).For Executives: *"This package provides a standardized way to detect syntax errors in test outputs during mutation testing—a common pain point that causes flaky CI/CD pipelines and slows down debugging. By adopting it, we can:
For Engineering Teams:
*"The infection/abstract-testframework-adapter package now includes a new HasSyntaxErrorDetection interface to standardize how we handle syntax errors in test outputs. Here’s why it’s worth adopting:
For Developers:
*"If you’re working on an Infection adapter (e.g., for PHPUnit, Pest, or a custom framework), this package now includes a HasSyntaxErrorDetection interface to handle syntax errors in test outputs. Here’s how to use it:
AbstractTestFrameworkAdapter to avoid reimplementing common logic.HasSyntaxErrorDetection (optional but recommended) to parse and flag syntax errors in test output.hasSyntaxError() to check for framework-specific syntax failures (e.g., ParseError in PHPUnit).ConfigBuilder and TemporaryFileHelper to reduce boilerplate.
Pro tip: The package is a dependency for Infection’s framework adapters, so you’ll likely use it indirectly. Only install it directly if you’re building a custom adapter or need to debug Infection’s internals.
Warning: The package is not actively maintained—treat it as a temporary solution unless you confirm Infection’s long-term reliance on it."*How can I help you explore Laravel packages today?