forlond / phpunit-testing-tools
A set of utilities for PHPUnit testing
Installs: 9 001
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 1
pkg:composer/forlond/phpunit-testing-tools
Requires
- php: >=8.1
- phpunit/phpunit: ^9.5 || ^10
Requires (Dev)
- doctrine/orm: ^2.0
- jms/serializer: ^3.0
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/event-dispatcher: ^5.4 || ^6.4
- symfony/expression-language: ^5.4 || ^6.4
- symfony/form: ^5.4 || ^6.4
- symfony/http-client: ^5.4 || ^6.4
- symfony/mailer: ^5.4 || ^6.4
- symfony/notifier: ^5.4 || ^6.4
- symfony/security-http: ^5.4 || ^6.4
- symfony/translation: ^5.4 || ^6.4
- symfony/validator: ^5.4 || ^6.4
- symfony/workflow: ^5.4 || ^6.4
This package is auto-updated.
Last update: 2025-10-02 20:25:01 UTC
README
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
Installation
composer require --dev forlond/phpunit-testing-tools
PhpUnit
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.
How to replace withConsecutive
This package provides some useful PHPUnit constraints. Readme
Integrations
| 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 |