PHPackages                             maspeng/test-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. maspeng/test-helper

ActiveLibrary[Testing &amp; Quality](/categories/testing)

maspeng/test-helper
===================

A library to simplify various tasks during test development

0.4.0(4mo ago)127.0k↓47.8%[5 PRs](https://github.com/MaSpeng/php-test-helper/pulls)1MITPHPPHP ^8.2CI passing

Since Oct 10Pushed 1mo agoCompare

[ Source](https://github.com/MaSpeng/php-test-helper)[ Packagist](https://packagist.org/packages/maspeng/test-helper)[ Docs](https://github.com/MaSpeng/php-test-helper)[ RSS](/packages/maspeng-test-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (13)Used By (1)

PHP test helper
===============

[](#php-test-helper)

This library has the target to simplify various tasks during test development.

[![Minimum PHP Version](https://camo.githubusercontent.com/a86e861ad6e57a3f93adc7433f22d035288b0952056a6251a0efe16dd6d52ed4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322e302d626c75652e737667)](https://php.net/)

Installation
------------

[](#installation)

To install this library just add it as development dependency to your project using:

```
composer require --dev maspeng/test-helper
```

Usage
-----

[](#usage)

### Object Reflector

[](#object-reflector)

To use the `ObjectReflectorTrait` just add a use statement to your `TestClass`.

See [object reflector trait documentation](docs/object-reflector.md).

Contribute
----------

[](#contribute)

Please refer to [CONTRIBUTING.md](.github/CONTRIBUTE.md) for information on how to contribute to php-test-helper project.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance84

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 79.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~876 days

Total

4

Last Release

147d ago

PHP version history (4 changes)0.1.0PHP ^7.2

0.2.0PHP ^7.2 | ^8.0

0.3.0PHP ^8.1

0.4.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18685557?v=4)[Marco Spengler](/maintainers/MaSpeng)[@MaSpeng](https://github.com/MaSpeng)

---

Top Contributors

[![MaSpeng](https://avatars.githubusercontent.com/u/18685557?v=4)](https://github.com/MaSpeng "MaSpeng (82 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (21 commits)")

---

Tags

helperphptesttestingphptestingphpunittesthelper

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/maspeng-test-helper/health.svg)

```
[![Health](https://phpackages.com/badges/maspeng-test-helper/health.svg)](https://phpackages.com/packages/maspeng-test-helper)
```

###  Alternatives

[quizlet/hammock

Hammock is a stand-alone mocking library for Hacklang.

27445.5k](/packages/quizlet-hammock)[albertcht/lumen-testing

Testing Suite For Lumen like Laravel does.

4335.5k1](/packages/albertcht-lumen-testing)[hot/phpunit-runner

The lib allows to watch phpunit tests

3066.9k4](/packages/hot-phpunit-runner)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
