teamradhq/testing

A collection of assertions and helpers to use in testing.

Maintainers

Package info

github.com/teamradhq/php-testing

pkg:composer/teamradhq/testing

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.2 2026-04-11 07:57 UTC

This package is auto-updated.

Last update: 2026-04-11 07:57:47 UTC


README

This package contains a collection of assertions, reflection helpers and other utilities that I use frequently in PHPUnit tests.

composer require --dev teamradhq/testing

Utilities

Helpers

Inspector

A static helper with a that provides a number of methods to inspect and interact with objects using reflection.

Assertion Libraries

ArrayAssertions

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.

ObjectAssertions

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.