PHPackages                             probedock/probedock-phpunit - 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. probedock/probedock-phpunit

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

probedock/probedock-phpunit
===========================

PHPUnit probe to publish test results to Probe Dock.

v0.2.3(9y ago)0170MITPHPPHP &gt;=5.3

Since Jun 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/probedock/probedock-phpunit)[ Packagist](https://packagist.org/packages/probedock/probedock-phpunit)[ Docs](https://github.com/probedock/probedock-phpunit)[ RSS](/packages/probedock-probedock-phpunit/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

PHPUnit probe for Probe Dock
============================

[](#phpunit-probe-for-probe-dock)

> PHPUnit listener to publish test results to [Probe Dock](https://github.com/probedock/probedock).

- [Setup](#setup)
- [Usage](#usage)
- [Troubleshooting](#troubleshooting)
    - [AnnotationException: the annotation was never imported](#annotation-exception)

Setup
-----

[](#setup)

Add `probedock-phpunit` as a dependency in your `composer.json` file:

```
{
  "name": "my/package",
  "require": {
    "probedock/probedock-phpunit": "^0.2.0"
  }
}
```

Then run `php composer.phar update`.

If you haven't done so already, set up your Probe Dock configuration file(s). This procedure is described here:

- [Probe Setup Procedure](https://github.com/probedock/probedock-probes#setup)

You must then add the Probe Dock PHPUnit listener to your PHPUnit configuration file (e.g. `phpunit.xml.dist`). This is the listener you must add:

```

```

Here's a complete sample of a `phpunit.xml.dist` configuration file from a Symfony project, showing where to add the listener (at the bottom):

```

      tests

      src

        src/*Bundle/Resources
        src/*/*Bundle/Resources
        src/*/Bundle/*Bundle/Resources

```

All test results will now be published to Probe Dock the next time you run your test suite!

### Usage

[](#usage)

To enrich tests with more information, you can use the `@ProbeDock` annotation:

```
