PHPackages                             mindplay/funit - 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. mindplay/funit

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

mindplay/funit
==============

A simple test suite for PHP 5.3+, partially inspired by QUnit.

1.0.0(12y ago)428Apache 2.0PHPPHP &gt;=5.3

Since Jun 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mindplay-dk/funit)[ Packagist](https://packagist.org/packages/mindplay/funit)[ Docs](http://github.com/mindplay/funit)[ RSS](/packages/mindplay-funit/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

mindplay-funit
==============

[](#mindplay-funit)

A lightweight test suite for PHP 5.3+

Based on [FUnit](https://github.com/funkatron/FUnit) by [Ed Finkler](https://github.com/funkatron/).

Web-based report design based on [QUnit](http://qunitjs.com/).

Features
--------

[](#features)

- Simple to write tests and get output – start writing tests **fast**
- Short, straightforward syntax
- Command-line and browser-based reporting

Screenshots
-----------

[](#screenshots)

### Running in the browser:

[](#running-in-the-browser)

[![Browser Report](https://camo.githubusercontent.com/5a437b0948159de5681fe828b24a1855f0e36d5d92f8bcfc34ca4ce3a8d2398e/687474703a2f2f692e696d6775722e636f6d2f4c36715a5768352e706e67)](https://camo.githubusercontent.com/5a437b0948159de5681fe828b24a1855f0e36d5d92f8bcfc34ca4ce3a8d2398e/687474703a2f2f692e696d6775722e636f6d2f4c36715a5768352e706e67)

### Running on the command-line:

[](#running-on-the-command-line)

[![Console Report](https://camo.githubusercontent.com/28dea45190be52514f1dc616360469b8f6f5b6399a0926eb0904c8005d5fa92f/687474703a2f2f692e696d6775722e636f6d2f64756c73494b622e706e67)](https://camo.githubusercontent.com/28dea45190be52514f1dc616360469b8f6f5b6399a0926eb0904c8005d5fa92f/687474703a2f2f692e696d6775722e636f6d2f64756c73494b622e706e67)

Usage
-----

[](#usage)

An [example test-suite](https://github.com/mindplay-dk/funit/blob/non-static/example.php)demonstrates the API and usage.

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

[](#installation)

### Install with Composer

[](#install-with-composer)

If you're using [Composer](https://github.com/composer/composer) to manage dependencies, you can add the test-suite as a development-time dependency:

```
{
    "require-dev": {
        "mindplay/funit": ">=1.0"
    }
}

```

### Install source from GitHub

[](#install-source-from-github)

To install the source code:

```
git clone git://github.com/mindplay-dk/funit.git

```

And include it in your scripts:

```
require_once '/path/to/funit/autoload.php';

```

### Install source from zip/tarball

[](#install-source-from-ziptarball)

Alternatively, you can fetch a [tarball](https://github.com/mindplay/funit/tarball/master) or [zipball](https://github.com/mindplay/funit/zipball/master):

```
$ curl https://github.com/mindplay-dk/funit/tarball/master | tar xzv
(or)
$ wget https://github.com/mindplay-dk/funit/tarball/master -O - | tar xzv

```

### Using a Class Loader

[](#using-a-class-loader)

If you're using a class loader (e.g., [Symfony Class Loader](https://github.com/symfony/ClassLoader)) for [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)-style class loading:

```
$loader->registerNamespace('mindplay\funit', 'path/to/vendor/mindplay-funit');

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

4729d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9445f567f43ee7a963270651e40e533634586f959e4df3d5398d001b1cb49be8?d=identicon)[mindplay.dk](/maintainers/mindplay.dk)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (46 commits)")[![funkatron](https://avatars.githubusercontent.com/u/1960?v=4)](https://github.com/funkatron "funkatron (30 commits)")[![scoates](https://avatars.githubusercontent.com/u/71983?v=4)](https://github.com/scoates "scoates (8 commits)")[![skyzyx](https://avatars.githubusercontent.com/u/39447?v=4)](https://github.com/skyzyx "skyzyx (1 commits)")

---

Tags

unittest

### Embed Badge

![Health badge](/badges/mindplay-funit/health.svg)

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

###  Alternatives

[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)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45223.8k4](/packages/elliotchance-concise)[sofa/eloquent-testsuite

Helpers for fast and reliable UNIT tests for your Eloquent Models with PHPUnit

10104.7k](/packages/sofa-eloquent-testsuite)[protomock/protomock

Mocking native PHP requests (file\_get\_contents(), ...)

2024.6k](/packages/protomock-protomock)

PHPackages © 2026

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