A set of utilities to facilitate the creation of unit tests for other libraries in PHPUnit.
Requires a PHP version ^8.1 and a PHPUnit version ^9.5 || ^10
composer require --dev forlond/phpunit-testing-tools
Important
If you plan to upgrade to PHPUnit 10 or higher, note that the withConsecutive method has been removed.
The WithConsecutive constraint provides a clean alternative to replace it.
This package provides some useful PHPUnit constraints. Readme
| Name | Supported Versions | Documentation |
|---|---|---|
| Doctrine/ORM | 2.x | Readme |
| JMS/Serializer | 3.x | Readme |
| Psr/Log | 1.x, 2.x, 3.x | Readme |
| Symfony/Form | 5.x, 6.x | Readme |
| Symfony/HttpClient | 5.x, 6.x | Readme |
| Symfony/HttpKernel | 5.x, 6.x | Readme |
| Symfony/Mailer | 5.x, 6.x | Readme |
| Symfony/Notifier | 5.x, 6.x | Readme |
| Symfony/Security | 5.x, 6.x | Readme |
| Symfony/Translation | 5.x, 6.x | Readme |
| Symfony/Validator | 5.x, 6.x | Readme |
| Symfony/Workflow | 5.x, 6.x | Readme |