PHPackages                             ogbitblt/unit-testing - 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. ogbitblt/unit-testing

ActiveLibrary

ogbitblt/unit-testing
=====================

Lightweight minimal unit testing framework for PHP based projects.

v1.0.0(3y ago)04MITPHPPHP ^8.2.0

Since Dec 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/OGBitBlt/UnitTesting)[ Packagist](https://packagist.org/packages/ogbitblt/unit-testing)[ RSS](/packages/ogbitblt-unit-testing/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

UnitTesting
===========

[](#unittesting)

lightweight PHP unit testing framework

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

[](#installation)

Use [composer](https://getcomposer.org/)

```
composer require ogbitblt/unit-testing

```

Usage
-----

[](#usage)

```
// initialize a new test suite
UnitTest::InitTestSuite("MyTestSuite");

// check if bool, float, int, or string values are equal
// if they are the test passes, and fails otherwise
UnitTest::BoolEqual(true,true,"does true equal true");
UnitTest::BoolEqual(true,false,"does true equal false");
UnitTest::FloatEqual(0,0,"does 0 float equal 0 float");
UnitTest::FloatEqual(0,1,"does 0 float equal 1 float");
UnitTest::FloatEqual(1.234567890,1.234567890,"how deep does your precision test");
UnitTest::FloatEqual(2.345678901,2.345678900,"how deep does your precision grow");
UnitTest::IntEqual(0,0,"does 0 int equal 0 int");
UnitTest::IntEqual(0,1,"does 0 int equal 1 int");
UnitTest::StringEqual("hello","hello","does hello equal hello");
UnitTest::StringEqual("hello","bye","does hello equal bye");

// show a test results summary
UnitTest::ShowResults();
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

1236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b664d0bfe41d0c1716a03b77a37f8689da78747d85e8db58546ac84e96a91203?d=identicon)[ogbitblt](/maintainers/ogbitblt)

---

Top Contributors

[![OGBitBlt](https://avatars.githubusercontent.com/u/113487847?v=4)](https://github.com/OGBitBlt "OGBitBlt (2 commits)")

### Embed Badge

![Health badge](/badges/ogbitblt-unit-testing/health.svg)

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

PHPackages © 2026

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