PHPackages                             aesonus/test-lib - 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. aesonus/test-lib

AbandonedArchivedLibrary

aesonus/test-lib
================

Defines a base test case with some nice methods

v4.01(5y ago)04249MITPHPPHP ^7.2

Since Jun 17Pushed 5y agoCompare

[ Source](https://github.com/Aesonus/test-lib)[ Packagist](https://packagist.org/packages/aesonus/test-lib)[ RSS](/packages/aesonus-test-lib/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (9)

[![Build Status](https://camo.githubusercontent.com/35fc69295aa1c43efc7f0b67333110fcaf755d1bfebc18a465c137d54d431a70/68747470733a2f2f7472617669732d63692e6f72672f4165736f6e75732f746573742d6c69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Aesonus/test-lib)

Test Lib
========

[](#test-lib)

This package contains a base class for testing purposes. It also includes phpunit version 8, and a virtual file system to mock the real file system.

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

[](#installation)

```
composer require aesonus/test-lib
```

Usage
-----

[](#usage)

You can use this to assert that an array contains only the values in expected. The keys are completely disregarded.

Use inside your test cases

```
class TestCase extends Aesonus\TestLib\BaseTestCase
{
    public function testCase() {
        $this->assertArrayContainsValues($expected, $actual);
        $this->assertArrayContainsAtLeastValues($expected, $actual);
    }
}
```

Bugs
----

[](#bugs)

Feel free to email me with bug reports or open an issue

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~109 days

Recently: every ~127 days

Total

8

Last Release

2125d ago

Major Versions

v1.0 → v2.02018-07-19

v2.0 → v3.02019-02-20

v3.1.2 → v4.02020-07-20

### Community

Maintainers

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

---

Top Contributors

[![Aesonus](https://avatars.githubusercontent.com/u/24643115?v=4)](https://github.com/Aesonus "Aesonus (25 commits)")

### Embed Badge

![Health badge](/badges/aesonus-test-lib/health.svg)

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

###  Alternatives

[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2021.0M277](/packages/drupal-core-dev)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

31252.7k5](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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