PHPackages                             localheinz/phpunit-framework-constraint - 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. localheinz/phpunit-framework-constraint

Abandoned → [ergebnis/phpunit-framework-constraint](/?search=ergebnis%2Fphpunit-framework-constraint)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

localheinz/phpunit-framework-constraint
=======================================

Provides additional constraints and assertions for phpunit/phpunit

0.2.1(6y ago)469[9 PRs](https://github.com/ergebnis/phpunit-framework-constraint/pulls)MITPHPPHP ^7.2

Since Oct 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ergebnis/phpunit-framework-constraint)[ Packagist](https://packagist.org/packages/localheinz/phpunit-framework-constraint)[ Docs](https://github.com/ergebnis/phpunit-framework-constraint)[ RSS](/packages/localheinz-phpunit-framework-constraint/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (11)Versions (14)Used By (0)

phpunit-framework-constraint
============================

[](#phpunit-framework-constraint)

[![Integrate](https://github.com/ergebnis/phpunit-framework-constraint/workflows/Integrate/badge.svg?branch=main)](https://github.com/ergebnis/phpunit-framework-constraint/actions)[![Prune](https://github.com/ergebnis/phpunit-framework-constraint/workflows/Prune/badge.svg?branch=main)](https://github.com/ergebnis/phpunit-framework-constraint/actions)[![Release](https://github.com/ergebnis/phpunit-framework-constraint/workflows/Release/badge.svg?branch=main)](https://github.com/ergebnis/phpunit-framework-constraint/actions)[![Renew](https://github.com/ergebnis/phpunit-framework-constraint/workflows/Renew/badge.svg?branch=main)](https://github.com/ergebnis/phpunit-framework-constraint/actions)

[![Code Coverage](https://camo.githubusercontent.com/2d2baf5549cc1ea70e99fb959ad0b784730e9375f058e1e2b09f495b0ef5808e/68747470733a2f2f636f6465636f762e696f2f67682f65726765626e69732f706870756e69742d6672616d65776f726b2d636f6e73747261696e742f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ergebnis/phpunit-framework-constraint)[![Type Coverage](https://camo.githubusercontent.com/f716b2da4cf176833f9bda87b367490a20d5eb81d7d99a112b8b0b94ed1d30e4/68747470733a2f2f73686570686572642e6465762f6769746875622f65726765626e69732f706870756e69742d6672616d65776f726b2d636f6e73747261696e742f636f7665726167652e737667)](https://shepherd.dev/github/ergebnis/phpunit-framework-constraint)

[![Latest Stable Version](https://camo.githubusercontent.com/f8e2a8bd55c267b9267ff36e456e5b2b7ab9d6a446d966db321574762d7d5a2d/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f706870756e69742d6672616d65776f726b2d636f6e73747261696e742f762f737461626c65)](https://packagist.org/packages/ergebnis/phpunit-framework-constraint)[![Total Downloads](https://camo.githubusercontent.com/e75137932d5c2b12a835fec4474ff84bd39a100594401331e005ca86b9ee991c/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f706870756e69742d6672616d65776f726b2d636f6e73747261696e742f646f776e6c6f616473)](https://packagist.org/packages/ergebnis/phpunit-framework-constraint)

Provides additional constraints for [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit).

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

[](#installation)

Run

```
$ composer require ergebnis/phpunit-framework-constraint
```

Usage
-----

[](#usage)

Import the `Ergebnis\PHPUnit\Framework\Constraint\Provider` trait into your test class:

```
