PHPackages                             net-tools/phpunit-dump - 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. net-tools/phpunit-dump

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

net-tools/phpunit-dump
======================

Composer library to dump data generated from a PHPUnit testsuite

1.0.14(3y ago)050MITPHPPHP &gt;= 8.0CI failing

Since Jan 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/net-tools/phpunit-dump)[ Packagist](https://packagist.org/packages/net-tools/phpunit-dump)[ RSS](/packages/net-tools-phpunit-dump/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

net-tools/phpunit-dump
======================

[](#net-toolsphpunit-dump)

Composer library to dump data from a PHPUnit testsuite
------------------------------------------------------

[](#composer-library-to-dump-data-from-a-phpunit-testsuite)

Sometimes we have to check some data produced by a unit test, but this can't be done with PHPUnit assertions.

This library makes it possible do dump this data to a file or to have the dump sent to a mail recipient, for further inspection.

Setup instructions
------------------

[](#setup-instructions)

To install net-tools/phpunit-dump package, just require it through composer : `require net-tools/phpunit-dump:^1.0.0`.

How to use ?
------------

[](#how-to-use-)

The extension must be registered in PHPUnit xml config file. For example, to register `DumpToMail` extension class :

```

```

The other PHPUnit extension class is `DumpToFile` which write all data to files inside a given path :

```

```

Then, during a test, call the static method `DumpExtension::dump($name, $data)` to create a dump value ; `$data` and `$name` are string values (in the case of `DumpToFile`, `$name` will be the filename created for this dump).

At the end of the whole PHPUnit test, the values will be dumped (to files or as mail attachments).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

Recently: every ~0 days

Total

15

Last Release

1125d ago

PHP version history (3 changes)1.0.0PHP &gt;= 7.2

1.0.4PHP &gt;= 7.4

1.0.9PHP &gt;= 8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cb0c1d404c8ae72b0a731246130079c2f440d6ea079815ca8c153aa361b1f28?d=identicon)[nettools.ovh](/maintainers/nettools.ovh)

---

Top Contributors

[![net-tools](https://avatars.githubusercontent.com/u/6818724?v=4)](https://github.com/net-tools "net-tools (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/net-tools-phpunit-dump/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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