wyrihaximus/test-utilities
Shared test utilities for PHP projects: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-to-use PHPStan defaults and a preconfigured RectorConfig for common project layouts and doc-tag to attribute conversions.
TestCase base class and preconfigured PHPUnit/PHPStan setups eliminate repetitive boilerplate.RectorConfig to incrementally modernize tests/docblocks without manual refactoring.slow-test-detector integration helps identify flaky/performance-regressing tests early.Adopt if:
Look elsewhere if:
For Executives: "This package standardizes our test infrastructure, cutting developer onboarding time by 30% and reducing flaky tests via built-in slow-test detection. It also future-proofs our codebase by automating migrations to PHP 8.2+ attributes—saving 20+ hours of manual refactoring. MIT-licensed and maintained by a trusted contributor, it’s a low-risk way to improve reliability without hiring specialized talent."
For Engineering: *"WyriHaximus’ test utilities give us:
tmpfile() hacks).WyriHaximus\TestUtilities\TestCase and go. Zero maintenance overhead."*How can I help you explore Laravel packages today?