PHPackages                             fooman/phpunit-assert-bridge - 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. fooman/phpunit-assert-bridge

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

fooman/phpunit-assert-bridge
============================

v0.5.2(7y ago)01.1kBSD-3-ClausePHP

Since Nov 24Pushed 7y agoCompare

[ Source](https://github.com/fooman/phpunit-assert-bridge)[ Packagist](https://packagist.org/packages/fooman/phpunit-assert-bridge)[ RSS](/packages/fooman-phpunit-assert-bridge/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

How to Use
==========

[](#how-to-use)

The aim is to be able to write phpunit assertions for phpunit 6 and then be able to run these for Magento 2.3 and earlier (more accurately their associated phpunit versions).

Install with

```
composer require fooman/phpunit-assert-bridge --dev

```

and then instead of `\PHPUnit\Framework\Assert` or `\PHPUnit_Framework_Assert` use `Fooman\PhpunitAssertBridge\CompatAssert` in both cases.

```
