PHPackages                             graze/hamcrest-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. graze/hamcrest-test-listener

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

graze/hamcrest-test-listener
============================

A PHPUnit test listener for the hamcrest assertion library.

v3.0.0(8y ago)417.5k3[1 PRs](https://github.com/graze/hamcrest-test-listener/pulls)3MITPHPPHP ^7.0

Since Dec 2Pushed 8y ago12 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (8)Used By (3)

graze/hamcrest-test-listener
============================

[](#grazehamcrest-test-listener)

[![Build Status](https://camo.githubusercontent.com/c816cdbe0a21502b8a4fa9acf1b94b4cdd7007c5367f4ffd590c7b6cca330ffd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6772617a652f68616d63726573742d746573742d6c697374656e65722f6d61737465722e737667)](https://travis-ci.org/graze/hamcrest-test-listener)[![Coverage Status](https://camo.githubusercontent.com/1974a84361befb144f6dc174f9d8f5f75fe086f383f673c65588207e5975bf39/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6772617a652f68616d63726573742d746573742d6c697374656e65722e737667)](https://scrutinizer-ci.com/g/graze/hamcrest-test-listener/code-coverage)[![Quality Score](https://camo.githubusercontent.com/3934a6114f4f26df07a99a49e0bb2db51010406ffee78f9a0033c95f65772a5a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6772617a652f68616d63726573742d746573742d6c697374656e65722e737667)](https://scrutinizer-ci.com/g/graze/hamcrest-test-listener)[![Latest Version](https://camo.githubusercontent.com/0ef40139037ffad27a001037d26103d9d4f4fcd979f31219bd8f7168928fc0e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772617a652f68616d63726573742d746573742d6c697374656e65722e737667)](https://packagist.org/packages/graze/hamcrest-test-listener)[![MIT Licensed](https://camo.githubusercontent.com/a18ac6825f7295054d94075bd10fdeec7ede0a79f744e1ebafc12d64608b1574/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6772617a652f68616d63726573742d746573742d6c697374656e65722e737667)](https://github.com/graze/hamcrest-test-listener/blob/master/LICENSE)

A PHPUnit test listener for the hamcrest assertion library.

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

[](#installation)

NOTE:

For PHPUnit &gt;= 6, please use version &gt;= 3.0

For PHPUnit &lt; 6, please use version &lt; 3.0

```
~$ composer require --dev graze/hamcrest-test-listener
```

Usage
-----

[](#usage)

In your **phpunit.xml** file, add the following:

```

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~151 days

Total

5

Last Release

3217d ago

Major Versions

v1.1.0 → v2.0.02016-03-18

v2.0.0 → v3.0.02017-07-27

PHP version history (4 changes)v1.0.0PHP &gt;= 5.6

v1.0.1PHP ^5.6 || ^7.0

v1.1.0PHP ^5.5 || ^7.0

v3.0.0PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/637788?v=4)[graze.com](/maintainers/graze)[@graze](https://github.com/graze)

---

Top Contributors

[![sjparkinson](https://avatars.githubusercontent.com/u/51677?v=4)](https://github.com/sjparkinson "sjparkinson (11 commits)")[![ascii-soup](https://avatars.githubusercontent.com/u/627657?v=4)](https://github.com/ascii-soup "ascii-soup (1 commits)")

### Embed Badge

![Health badge](/badges/graze-hamcrest-test-listener/health.svg)

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

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

31252.7k5](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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