This package contains a collection of assertions, reflection helpers and other utilities that I use frequently in PHPUnit tests.
composer require --dev teamradhq/testingA static helper with a that provides a number of methods to inspect and interact with objects using reflection.
Provides some assertions for arrays that can be used to assert partial or complete "sameness".
Tip
Here sameness means that arrays are equal in content regardless of the order of elements.
Use the Inspector to provide a range of assertions for validating objects. It
Tip
Sometimes it just isn't possible to refactor a class to make it more testable using DI or similar techniques. This is where these assertions come in handy. These can either be permanent fixtures in your test library, or can be used to validate the existing behaviour before refactoring.