eliashaeussler/deep-closure-comparator

Provides a PHPUnit comparator to assert equality of closures

dev-main 2025-08-17 17:52 UTC

This package is auto-updated.

Last update: 2025-08-17 17:52:11 UTC


README

Deep Closure Comparator

Coverage Maintainability CGL Tests Supported PHP Versions

A Composer library that provides a PHPUnit comparator to assert equality of closures. It can be used to perform deep evaluation of closures, e.g. as part of objects. Closures are compared using their serialized value, which is calculated by the opis/closure library.

🔥 Installation

Packagist Packagist Downloads

composer require --dev eliashaeussler/deep-closure-comparator

🧑‍💻 Contributing

Please have a look at CONTRIBUTING.md.

⭐ License

This project is licensed under GNU General Public License 3.0 (or later).