PHPackages                             dxw/assertions - 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. dxw/assertions

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

dxw/assertions
==============

Extra assertions for PHPUnit

010.4k↑16.7%1[5 issues](https://github.com/dxw/assertions/issues)[1 PRs](https://github.com/dxw/assertions/pulls)PHP

Since Apr 22Pushed 6y ago3 watchersCompare

[ Source](https://github.com/dxw/assertions)[ Packagist](https://packagist.org/packages/dxw/assertions)[ RSS](/packages/dxw-assertions/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

\\Dxw\\Assertions
=================

[](#dxwassertions)

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

[](#installation)

```
composer require --dev dxw/assertions=dev-master

```

Usage
-----

[](#usage)

```
class MyTest extends PHPUnit_Framework_TestCase
{
    use \Dxw\Assertions\HTML;

    public function testSomeHtml()
    {
        $output = 'bbb';

        // Assert the two documents are equivalent
        $this->assertHTMLEquals('
        bbb
        ', $output);

        // Be strict about whitespace
        $this->assertHTMLEqualsStrictWhitespace('

        bbb

        ', $output);
    }
}

```

API
---

[](#api)

### \\Dxw\\Assertions\\HTML

[](#dxwassertionshtml)

```
assertHTMLEquals($expected, $actual)
assertHTMLEqualsStrictWhitespace($expected, $actual)

```

Licence
-------

[](#licence)

[MIT](COPYING.md)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/370665?v=4)[Rob Skilling](/maintainers/RobjS)[@RobjS](https://github.com/RobjS)

![](https://avatars.githubusercontent.com/u/4721596?v=4)[Matthew Passmore](/maintainers/matpassmore)[@matpassmore](https://github.com/matpassmore)

![](https://avatars.githubusercontent.com/u/71827088?v=4)[Serena Piccioni](/maintainers/serena-piccioni)[@serena-piccioni](https://github.com/serena-piccioni)

---

Top Contributors

[![mallorydxw](https://avatars.githubusercontent.com/u/2256130?v=4)](https://github.com/mallorydxw "mallorydxw (17 commits)")

### Embed Badge

![Health badge](/badges/dxw-assertions/health.svg)

```
[![Health](https://phpackages.com/badges/dxw-assertions/health.svg)](https://phpackages.com/packages/dxw-assertions)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)

PHPackages © 2026

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