forlond/phpunit-testing-tools

A set of utilities for PHPUnit testing

1.8.4 2025-10-02 07:37 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