PHPackages                             melvdouc/obrussa - 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. melvdouc/obrussa

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

melvdouc/obrussa
================

A simple PHP unit test library.

v1.0.1(2y ago)0121MITPHP

Since Jan 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MelvDouc/php-obrussa)[ Packagist](https://packagist.org/packages/melvdouc/obrussa)[ RSS](/packages/melvdouc-obrussa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (1)

Obrussa
=======

[](#obrussa)

A simple PHP unit test library meant to resemble the native test module from NodeJS.

Examples
--------

[](#examples)

Write some tests.

```
// tests/index.php

require_once dirname(__DIR__) . "/vendor/autoload.php";

use MelvDouc\Obrussa\TestSuite;

function add(int $a, int $b): int
{
  return $a + $b;
}

TestSuite::test("1 + 1 = 2", function (TestSuite $testSuite) {
  $testSuite->assertEquals(add(1, 1), 2);
});

TestSuite::test("instanceof", function (TestSuite $testSuite) {
  $testSuite->expect($testSuite)->toBeInstanceOf(TestSuite::class);
  $testSuite->expect($testSuite)->not()->toBeInstanceOf(\stdClass::class);
});

TestSuite::test("email", function (TestSuite $testSuite) {
  $testSuite->assertEmail("example@mail.com");
  $testSuite->assertNotEmail("example@mail");
  $testSuite->expect("example.com")->not()->toBeEmail();
});

TestSuite::run();
```

Run the tests.

```
php tests/index.php
```

Output:

```
✓ 1 + 1 = 2
✓ instanceof
✓ email

Number of tests: 3.
Passed: 3. Failed: 0.

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

2

Last Release

836d ago

### Community

Maintainers

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

---

Top Contributors

[![MelvDouc](https://avatars.githubusercontent.com/u/75629333?v=4)](https://github.com/MelvDouc "MelvDouc (5 commits)")

---

Tags

unittesttests

### Embed Badge

![Health badge](/badges/melvdouc-obrussa/health.svg)

```
[![Health](https://phpackages.com/badges/melvdouc-obrussa/health.svg)](https://phpackages.com/packages/melvdouc-obrussa)
```

###  Alternatives

[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[colinodell/psr-testlogger

PSR-3 compliant test logger based on psr/log v1's, but compatible with v2 and v3 too!

1712.1M47](/packages/colinodell-psr-testlogger)[diablomedia/phpunit-pretty-printer

A PHPUnit result printer that shows per-file test progress and execution times

78515.2k5](/packages/diablomedia-phpunit-pretty-printer)[icecave/isolator

Dependency injection for global functions.

371.3M29](/packages/icecave-isolator)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M123](/packages/friends-of-phpspec-phpspec-code-coverage)[leanphp/behat-code-coverage

Generate Code Coverage reports for Behat tests

50359.8k2](/packages/leanphp-behat-code-coverage)

PHPackages © 2026

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