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.
Allowed ocramius/package-versions plugin in composer.json, see https://getcomposer.org/allow-plugins.
Fixed checking for non-existent keys in superglobals in the condition requirements. For example, in previous releases
[@requires](https://github.com/requires) condition env.AWS_ACCESS_KEY_ID
would fail with the error Undefined array key "AWS_ACCESS_KEY_ID" if such an environment variable did not exist (see https://github.com/symfony/symfony/issues/21691 for details).
Added "setting" to the list of PHPUnit requirements. For example,
[@requires](https://github.com/requires) setting display_errors On
will now be detected as a PHPUnit requirement and passed through to the PHPUnit annotation processor. This requirement has been supported since PHPUnit v7.0, although there is no mention of it in the documentation.
Added PHP 8.1 to the test matrix.
Fixed InvalidAnnotationException factory methods to return instead of throwing
Moved the [@after](https://github.com/after) annotation from Expectations::verifyExpectations() to TestCase::verifyTestCaseExpectations()
:champagne: :birthday: :tada:
How can I help you explore Laravel packages today?