PHPackages                             webtheory/unit-utils - 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. webtheory/unit-utils

ActiveLibrary

webtheory/unit-utils
====================

helpers and utilities for unit testing

0.1.0(2y ago)051↓50%2MITPHPPHP ^8.0

Since Aug 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/spider-mane/unit-utils)[ Packagist](https://packagist.org/packages/webtheory/unit-utils)[ Docs](https://github.com/spider-mane/unit-utils)[ RSS](/packages/webtheory-unit-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (22)Versions (2)Used By (2)

unit-utils
==========

[](#unit-utils)

A message to Russian 🇷🇺 people
------------------------------

[](#a-message-to-russian--people)

If you currently live in Russia, please read [this message](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/ToRussianPeople.md).

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://stand-with-ukraine.pp.ua)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Required PHP Version](https://camo.githubusercontent.com/ee56732f460b2fdb7d487d5363c279d5966b1688f354032b41c5d00b80c8b122/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765627468656f72792f756e69742d7574696c732e7376673f636f6c6f72423d253233383839324246)](https://php.net)[![Latest Version on Packagist](https://camo.githubusercontent.com/71e80fc24740f6ce66dfebe7ce9ad5f29ae88fdc9b8d4304f60ba6d1d0165b5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765627468656f72792f756e69742d7574696c732e737667)](https://packagist.org/packages/webtheory/unit-utils)[![Total Downloads](https://camo.githubusercontent.com/5136f5fc8bdfddd75d75a3248d444cb61adb50cae7a8aece874015a112242905/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765627468656f72792f756e69742d7574696c732e737667)](https://packagist.org/packages/webtheory/unit-utils/stats)[![Build Status](https://camo.githubusercontent.com/9a1fdde78e7a391ddd3cd849d46bf704cc006f4bda92fc4a8680561debb51cad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7765627468656f72792f756e69742d7574696c732e737667)](https://scrutinizer-ci.com/g/webtheory/unit-utils)[![Code Coverage](https://camo.githubusercontent.com/3cbcde3318ebdb1a5fdca2cf0dbd6e3ac41ff77903cfc1cf54d8b67d6df431d7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7765627468656f72792f756e69742d7574696c732e737667)](https://scrutinizer-ci.com/g/webtheory/unit-utils)[![Quality Score](https://camo.githubusercontent.com/d87f805d001fba16247ff1aa0592209f8ef4bba335cf2d5b6c741fc0793c3325/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7765627468656f72792f756e69742d7574696c732e737667)](https://scrutinizer-ci.com/g/webtheory/unit-utils)[![Build Status](https://camo.githubusercontent.com/3f7ea2e1beacfc8cb8d7e45481ac0df5c8b7baf91e8a1ffb627af633a3678baa/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7765627468656f72792f756e69742d7574696c732f6d61737465722e737667)](https://travis-ci.org/webtheory/unit-utils)[![Maintainability](https://camo.githubusercontent.com/2068df0870ba4b1f61526e720004dfdeb4414eb7d9b690a8b1c0863ab009cda3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f7765627468656f72792f756e69742d7574696c732e737667)](https://codeclimate.com/github/webtheory/unit-utils/maintainability)[![Average time to resolve an issue](https://camo.githubusercontent.com/c89fed548862e347c9c54ce1c86f40d8fb607d4cf19c6d124da56b62435a36ec/68747470733a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f7765627468656f72792f756e69742d7574696c732e737667)](https://isitmaintained.com/project/webtheory/unit-utils)[![Percentage of issues still open](https://camo.githubusercontent.com/f29bf59570b960924907b8d9017bb020c203567087ace97d05c803d13847a588/68747470733a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f7765627468656f72792f756e69742d7574696c732e737667)](https://isitmaintained.com/project/webtheory/unit-utils)

Purpose
-------

[](#purpose)

helpers and utilities for unit testing

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

[](#installation)

Via Composer

```
composer require webtheory/unit-utils
```

Usage
-----

[](#usage)

```
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chris Williams](https://github.com/spider-mane)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1005d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42c6c17a141acad92bd90ad7b7e574ea19ecb332f33272a041261566670576cf?d=identicon)[webtheory](/maintainers/webtheory)

---

Top Contributors

[![spider-mane](https://avatars.githubusercontent.com/u/17187449?v=4)](https://github.com/spider-mane "spider-mane (5 commits)")

---

Tags

webtheoryunit-utils

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webtheory-unit-utils/health.svg)

```
[![Health](https://phpackages.com/badges/webtheory-unit-utils/health.svg)](https://phpackages.com/packages/webtheory-unit-utils)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[open-telemetry/api

API for OpenTelemetry PHP.

1833.0M214](/packages/open-telemetry-api)[open-telemetry/context

Context implementation for OpenTelemetry PHP.

1532.6M61](/packages/open-telemetry-context)[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M101](/packages/dragon-code-support)

PHPackages © 2026

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