rybakit/phpunit-extras
Extend PHPUnit with custom annotations, placeholders, requirements, and expectations. Build and integrate your own @tags, version/package/expression-based requirements, and reusable expectation helpers. Optional support for composer/semver, package-versions, and symfony/expression-language.
@Given, @When, @Then annotations) to improve readability and collaboration between devs, QA, and non-technical stakeholders. Aligns with shift-left testing initiatives by making tests more intuitive for broader teams.@Request, @Response for clear intent.@Scenario to group multi-step workflows (e.g., checkout flows).For Executives: *"This package lets us write tests that read like plain-English stories (e.g., ‘Given a user logs in, when they click ‘Buy’, then the cart updates’). It’s a low-cost, high-impact way to:
For Engineering:
*"PHPUnit-Extras adds custom annotations (@Given, @DataProvider, etc.) and expectations to make tests:
@ExpectException(AuthException::class) vs. verbose try-catch blocks.@Scenario.How can I help you explore Laravel packages today?