PHPackages                             ergebnis/test-util - 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. ergebnis/test-util

Abandoned → [ergebnis/data-provider](/?search=ergebnis%2Fdata-provider)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

ergebnis/test-util
==================

Provides a helper trait and generic data providers for tests.

1.6.0(4y ago)151.8M↓12.3%220MITPHPPHP ^7.4 || ^8.0

Since Sep 16Pushed 4y ago2 watchersCompare

[ Source](https://github.com/ergebnis/test-util)[ Packagist](https://packagist.org/packages/ergebnis/test-util)[ Docs](https://github.com/ergebnis/test-util)[ GitHub Sponsors](https://github.com/localheinz)[ RSS](/packages/ergebnis-test-util/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (70)Used By (20)

test-util
=========

[](#test-util)

[![Integrate](https://github.com/ergebnis/test-util/workflows/Integrate/badge.svg)](https://github.com/ergebnis/test-util/actions)[![Prune](https://github.com/ergebnis/test-util/workflows/Prune/badge.svg)](https://github.com/ergebnis/test-util/actions)[![Release](https://github.com/ergebnis/test-util/workflows/Release/badge.svg)](https://github.com/ergebnis/test-util/actions)[![Renew](https://github.com/ergebnis/test-util/workflows/Renew/badge.svg)](https://github.com/ergebnis/test-util/actions)

[![Code Coverage](https://camo.githubusercontent.com/eda9c135b7bdc5e6131f25fc89b8618ec1d9b5ccb827ae8a638b1124d902c9e4/68747470733a2f2f636f6465636f762e696f2f67682f65726765626e69732f746573742d7574696c2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ergebnis/test-util)[![Type Coverage](https://camo.githubusercontent.com/8223d43b8253f80010c213fc97677611f4b89b29a24fed5fa5b9cd2df1aeb847/68747470733a2f2f73686570686572642e6465762f6769746875622f65726765626e69732f746573742d7574696c2f636f7665726167652e737667)](https://shepherd.dev/github/ergebnis/test-util)

[![Latest Stable Version](https://camo.githubusercontent.com/d841b623340338816d1c6d0a0c5c753a8e29fb57b0e75f2e8a45e117bd49bf1f/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f746573742d7574696c2f762f737461626c65)](https://packagist.org/packages/ergebnis/test-util)[![Total Downloads](https://camo.githubusercontent.com/faf0f6889588dc707e83a36cc302ab069cccdc8ecd958a5d509b994bcbe619a0/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f746573742d7574696c2f646f776e6c6f616473)](https://packagist.org/packages/ergebnis/test-util)

Provides a helper trait for tests.

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

[](#installation)

Run

```
$ composer require --dev ergebnis/test-util
```

Usage
-----

[](#usage)

### `Helper`

[](#helper)

Import the `Ergebnis\Test\Util\Helper` trait into your test class:

```
