mehr-als-nix/assumptions
Assumptions for PHPUnit: skip tests when preconditions aren’t met (PHP version, extensions, etc.). Provides assumeTrue/assumeThat and Hamcrest matchers; failed assumptions are treated as skipped, including in @before/@beforeClass. Similar to @requires.
@requires annotations with readable, IDE-friendly code for complex conditions (e.g., OS checks, disk space validation).@requires annotations. Ideal for teams prioritizing Hamcrest matcher flexibility for environment checks.@requires effectively—this package offers marginal gains for minimal effort.@requires, custom test helpers) or maintain a fork if legacy system support is needed.Executives: "This tool eliminates wasted CI resources by skipping tests when environments don’t meet prerequisites—reducing false failures and accelerating feedback loops. It’s a zero-cost, open-source solution that requires no infrastructure changes to ensure only valid tests run."
Engineering: "Replace brittle @requires annotations with type-safe, IDE-supported assumption methods (e.g., assumeExtensionLoaded()) using Hamcrest matchers. It streamlines test setup for multi-environment validation but requires validation against your PHPUnit version—verify compatibility before adoption given the package’s 2018 inactivity."
How can I help you explore Laravel packages today?