yoanm/php-unit-extended
A PHPUnit extension for PHP that adds extra test helpers and assertions, reducing boilerplate and making unit tests clearer and easier to maintain alongside PHPUnit's built-in features.
TestCase helpers, assertDatabaseHas, HTTP assertions, and Pest's expectation API. The decision this informs is "do we add a third testing dialect, or consolidate on the framework-native one?"Use cases where it could plausibly earn a slot: teams with a large legacy PHPUnit suite (not Pest), no desire to migrate, and recurring, painful assertion boilerplate.
Consider it (cautiously) when:
require-dev (i.e., it cannot ship to production).Look elsewhere when:
Validation steps before any adoption: read the source (it's small), confirm PHPUnit version compatibility against your pinned version (PHPUnit majors break frequently), check whether it's an extension/plugin or just a trait/base-class, and measure how many of your actual tests would use it.
For executives (one line): A tiny, free, dev-only PHP testing utility that could slightly reduce test-writing effort; low upside, and our recommendation is to skip the dependency and copy the useful patterns in-house at near-zero cost.
For engineering leadership:
composer.json. Spend 1–2 engineer-hours reviewing the source and porting any genuinely useful assertion helpers into our internal test-support package. Revisit only if a concrete, measured boilerplate problem justifies a real evaluation.How can I help you explore Laravel packages today?