PHPackages                             firstruner/phpunit\_firstruner - 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. firstruner/phpunit\_firstruner

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

firstruner/phpunit\_firstruner
==============================

This is an PHPUnit extension to have a newer CLI result prompting and also add alert on memory and time consuming

1.0.0(2y ago)26proprietaryPHPPHP &gt;=7.4

Since May 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/firstruner/phpunit_firstruner)[ Packagist](https://packagist.org/packages/firstruner/phpunit_firstruner)[ Docs](https://firstruner.fr)[ RSS](/packages/firstruner-phpunit-firstruner/feed)WikiDiscussions master Synced 1mo ago

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

PHPUnit Firstruner
==================

[](#phpunit-firstruner)

Hi, I'm Christophe and I got tired of having a display that was too reductive with PHPUnit. So I build an extension for PHPUnit that give a result about unit test more beautifull, but also take some parameters for have a checking on the memory consuming and time elapsed.

How Use
=======

[](#how-use)

Call reference
--------------

[](#call-reference)

Simply ! You must call the reference to "Doctrine\\Common\\Annotations\\UnitTestAnnotation" like this :

```
use Doctrine\Common\Annotations\UnitTestAnnotation;

```

Parameters
----------

[](#parameters)

### name

[](#name)

name is a required field, it give a name to your class or method

### description

[](#description)

description is an optional fiels, it give you a description in your test results

### item

[](#item)

item is a name of the tested POO object, like the class name

### element

[](#element)

element is a name of the tested POO function, property, ...

### memoryLimit

[](#memorylimit)

memoryLimit fixe a limit about consumption limit for a class or method (not implemented for a method) The value is expressed in octets

### executionTimeLimit

[](#executiontimelimit)

executionTimeLimit fixe a limit for execute all assertion in a test or in class test The value is expressed in seconds

Parameter a test class
----------------------

[](#parameter-a-test-class)

Just add UnitTestAnnotation to your class and herits of TestCase\_Firstruner instead of TestCase, like this :

```
/**
* @UnitTestAnnotation(
* name="Annotation",
* description="Test des annotations",
* item="Annotation",
* element="Class",
* memoryLimit=8000000,
* executionTimeLimit=1)
*/
class  AnnotationTest  extends  TestCase_Firstruner
{
...[Your tests codes]...
}

```

Parameter a test
----------------

[](#parameter-a-test)

Just add UnitTestAnnotation to your test function, like this :

```
/**
* @UnitTestAnnotation(
* name="This is a test",
* description="Annotation about method",
* item="Annotation",
* element="Function",
* executionTimeLimit=2)
*/
class  AnnotationTest  extends  TestCase_Firstruner
{
...[Your tests codes]...
}

```

How run test
------------

[](#how-run-test)

Like PHPUnit but with some change :

```
php "phpunit_firstruner/phpunit_firstruner" [..Your common parameters, files, directories..]

```

Result
======

[](#result)

[![enter image description here](https://camo.githubusercontent.com/99bd278c9c6eeebc00193bd97ddcd4176713d9a72b8f991bb5f2268cc8186ab6/68747470733a2f2f6769746c61622e636f6d2f666972737472756e65722f756e6974746573745f666972737472756e65722f2d2f7261772f6d61737465722f507265766965772e6a7067)](https://camo.githubusercontent.com/99bd278c9c6eeebc00193bd97ddcd4176713d9a72b8f991bb5f2268cc8186ab6/68747470733a2f2f6769746c61622e636f6d2f666972737472756e65722f756e6974746573745f666972737472756e65722f2d2f7261772f6d61737465722f507265766965772e6a7067)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

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

734d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/724900254a111042e48c991ba4499db873675f03919445c528e297ef2400832f?d=identicon)[Firstruner](/maintainers/Firstruner)

---

Top Contributors

[![CBoulas80](https://avatars.githubusercontent.com/u/209895544?v=4)](https://github.com/CBoulas80 "CBoulas80 (17 commits)")[![firstruner](https://avatars.githubusercontent.com/u/35631831?v=4)](https://github.com/firstruner "firstruner (1 commits)")

---

Tags

phpunitunittestcolorunittestfirstruner

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/firstruner-phpunit-firstruner/health.svg)

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

###  Alternatives

[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[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)[elliotchance/concise

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

45223.8k4](/packages/elliotchance-concise)[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)[sofa/eloquent-testsuite

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

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

PHPackages © 2026

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