Search by

eboreum / phpunit-extras

eboreum

Extra PHPUnit helpers for assertions, mock factories, and reusable test-case utilities.

Package info

gitlab.com/eboreum/phpunit-extras

Issues

pkg:composer/eboreum/phpunit-extras

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

dev-main 2026-09-19 14:56 UTC

This package is auto-updated.

Last update: 2026-09-19 13:01:12 UTC


README

license pipeline status coverage report PHPStan Level

eboreum-phpunit-extras

PHPUnit Extras is a PHP 8.5 library for test suites that want reusable PHPUnit helpers without copying boilerplate between projects.

It provides assertion helpers for throwable messages, object initialization, base64 strings, and debug identifiers; utilities for creating constructor-aware mocks and reflection-built test objects; value mockers for common type hints; and a trait/interface pair that exposes the helpers from your own PHPUnit test cases.

Requirements

"php": "^8.5",
"eboreum/caster": "^3.0",
"eboreum/exceptional": "^3.0",
"eboreum/immutable-interface": "^1.0",
"eboreum/phpunit-with-consecutive-alternative": "^3.0",
"phpunit/phpunit": "^13.1",
"sebastian/diff": "^9.0"

Installation

Via Composer (https://packagist.org/packages/eboreum/phpunit-extras):

composer require eboreum/phpunit-extras

Via GitLab:

git clone git@gitlab.com:eboreum/phpunit-extras.git

License

See LICENSE file. Basically: Use this library at your own risk.

Contributing

We prefer that you create an issue and or a merge request at https://gitlab.com/eboreum/phpunit-extras, and have a discussion about a feature or bug here.

Credits

Authors

AI Implementation Assistance Disclaimer

AI, GPT-5.5 specifically, was used in the implementation of this codebase. However, the code has been thoroughly reviewed by human eyes.