PHPackages                             cabdesigns/trace-test-listener - 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. cabdesigns/trace-test-listener

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

cabdesigns/trace-test-listener
==============================

Searches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.

113PHP

Since May 4Pushed 11y agoCompare

[ Source](https://github.com/cabdesigns/trace-test-listener)[ Packagist](https://packagist.org/packages/cabdesigns/trace-test-listener)[ RSS](/packages/cabdesigns-trace-test-listener/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Trace test listener
===================

[](#trace-test-listener)

Searches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.

Scenarios for using this may include finding out which tests are:

- Hitting a real database, web service, etc.
- Using deprecated features.
- Using tightly coupled code.

[![Screenshot of terminal using TraceTestListener](docs/terminal-example.png)](docs/terminal-example.png)

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

[](#installation)

TraceTestListener is installable via [Composer](http://getcomposer.org) and should be added as a `require-dev` dependency:

```
php composer.phar require --dev cabdesigns/trace-test-listener dev-master

```

XDebug **must** be installed for this listener to work.

Configuration
-------------

[](#configuration)

Configure the search terms you want to look for inside the call trace, using an array argument.

You can also optionally set the directory to write the trace files to. This will default to the `traces` folder.

```

			          	curl_exec

                traces

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cb2cb91b98ba7a5c35a34ed530f54f82b4aa25c353386a2a5dc20667d682013?d=identicon)[cabdesigns](/maintainers/cabdesigns)

---

Tags

phpphpunitphpunit-listenerunit-testing

### Embed Badge

![Health badge](/badges/cabdesigns-trace-test-listener/health.svg)

```
[![Health](https://phpackages.com/badges/cabdesigns-trace-test-listener/health.svg)](https://phpackages.com/packages/cabdesigns-trace-test-listener)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[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)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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