wyrihaximus/test-utilities
A set of PHP test utilities for package development: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-made configuration defaults for PHPStan and Rector (paths and docblock-to-attribute conversions).
TestCase base class with utilities like random namespaces/directories to speed up test development for new hires or contributors.phpunit-slow-test-detector) and infection-based mutation testing to proactively improve test suite robustness.Adopt if:
src/, tests/, etc/).Look elsewhere if:
RefreshDatabase, PestPHP) not covered here.Mockery or PHPUnit extensions instead).For Executives: "This package standardizes our PHP test infrastructure, reducing developer time spent on boilerplate test setups by 30%+ while ensuring consistency. It integrates seamlessly with our Laravel stack, automates modernizations (e.g., docblock-to-attribute conversions), and proactively improves test quality with slow-test detection. The MIT license and active maintenance make it a low-risk, high-reward choice—similar to how we’ve adopted Laravel for backend consistency."
For Engineering: *"WyriHaximus’ test utilities give us:
TestCase with random namespaces/directories for file-storage tests (no more manual temp dir setup).composer require and extend TestCase."*How can I help you explore Laravel packages today?