eliashaeussler / deep-closure-comparator
Provides a PHPUnit comparator to assert equality of closures
dev-main
2025-08-17 17:52 UTC
Requires
- php: ~8.2.0 || ~8.3.0 || ~8.4.0
- opis/closure: ^4.0
- phpunit/phpunit: ^11.5 || ^12.3
- sebastian/comparator: ^6.3 || ^7.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-08-17 17:52:11 UTC
README
Deep Closure Comparator
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
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).