wyrihaximus/test-utilities
Test utilities for api-clients packages, providing a PHPStan extension so test classes can extend WyriHaximus\TestUtilities\TestCase, with automatic registration via phpstan/extension-installer or manual inclusion of extension.neon.
TestCase base class), now aligned with the PHPUnit 13 toolchain.^14.10.x) and Rector rules to enforce best practices and modernize legacy codebases during development, not just in CI.infection/infection) and phpunit-slow-test-detector to surface flaky or slow tests early.Adopt if:
Look elsewhere if:
For Executives: "This package standardizes our PHP testing infrastructure, cutting onboarding time and reducing test-related bugs through built-in tooling like PHPStan and Rector. The 14.x line is actively maintained—recent releases show continuous, automated dependency updates (PHPUnit 13, PHPStan rules wrappers, CI workflows)—so it stays current without us burning engineering cycles. It's a low-risk, high-reward investment in code quality and developer velocity: 'Convention over Configuration' for testing. One caveat: the recent major-line jump means we should confirm our PHP runtime floor (8.4+) before adopting, but for teams already there, it's a safe bet in the Laravel ecosystem."
For Engineering: *"WyriHaximus' test utilities (now on 14.5.0) give us:
^14.10.x and QA tooling wrapper ^2.4.0 to catch type issues early and standardize QA.TestCase and start testing faster. Note the 14.x major bump raises the PHP baseline to 8.4+; check your runtime matrix before upgrading from 13.x."*How can I help you explore Laravel packages today?