PHPackages                             bootpress/htmlunit - 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. bootpress/htmlunit

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

bootpress/htmlunit
==================

Enables you to thoroughly test the HTML output of your code.

v1.0(9y ago)01.5k↑2900%7MITPHPPHP &gt;=5.4

Since Sep 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Kylob/HTMLUnit)[ Packagist](https://packagist.org/packages/bootpress/htmlunit)[ RSS](/packages/bootpress-htmlunit/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (7)

use BootPress\\HTMLUnit\\Component as HTMLUnit;
===============================================

[](#use-bootpresshtmlunitcomponent-as-htmlunit)

[![Packagist](https://camo.githubusercontent.com/a84bb9f6a0afa2167763ffccd3f1c707ed690528632bfdc5364036e2cf5bd2f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6f7470726573732f68746d6c756e69742e7376673f7374796c653d666c61742d737175617265266c6162656c3d5061636b6167697374)](https://packagist.org/packages/bootpress/htmlunit)[![License MIT](https://camo.githubusercontent.com/a7e65aee57b11d28e4caff8b945729a66be0bb663f7f93bd24c5aa65699f148e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![HHVM Tested](https://camo.githubusercontent.com/3422fab0fbdb2e50d74ced25d6df3e7e1be8b373f48c708a785f247a503409d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4848564d2d5465737465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/HTMLUnit)[![PHP 7 Supported](https://camo.githubusercontent.com/7dae9186d16bac6b5d5cee34d3bec4400516657b575bc1c784125d70a6871126/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230372d537570706f727465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/HTMLUnit)[![Build Status](https://camo.githubusercontent.com/3cb56476d86aff2dbe5e0dab1bed8e70fac6f5138a3430a3c6491b2e3827cd17/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b796c6f622f48544d4c556e69742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/HTMLUnit)[![Code Climate](https://camo.githubusercontent.com/0dff5daf08b4b95eb1614655e08e6281ee2ff4a72b54d5c86b7c13807c7c91fc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f4b796c6f622f48544d4c556e69742e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/HTMLUnit)[![Test Coverage](https://camo.githubusercontent.com/03e1525301ecc9a914b4fc34badfa34591a52fb4bfe0f92e1cd80f0365593ca7/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f4b796c6f622f48544d4c556e69742e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/HTMLUnit/coverage)

Extends PHPUnit and combines the `assertEquals` and `assertRegExp` assertions into one `assertEqualsRegExp` method that enables you to thoroughly test the HTML output of your code.

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

[](#installation)

Add the following to your `composer.json` file.

```
{
    "require-dev": {
        "bootpress/htmlunit": "^1.0"
    }
}
```

Example Usage
-------------

[](#example-usage)

```
