Headless is a PhantomJS and SlimerJS integration for PHPUnit.

dev-main 2015-04-16 20:10 UTC

This package is auto-updated.

Last update: 2023-01-12 17:31:21 UTC


Branch Downloads Unit Tests Coverage
Latest Stable Version Total Downloads Build Status Code Coverage

PHPUnit Headless is a PHPUnit extension which provides wrappers to PhantomJS and SlimerJS.


PhantomJS is a headless browser running on WebKit as used by Google/Safari. It is not a test framework. Here tests are launched via PHPUnit as the test runner. It runs purely headless (no X11) on Linux and is ideal for continuous integration systems.

SlimerJS is a (not yet fully) headless browser helper running on XulRunner as used by Gecko/Firefox.


Requirements are fetched via Composer.

  • PHPUnit 4.*
  • PhantomJS 1.9.*

Installation via Composer

Please use Composer to download and install PHPUnit Headless as well as all of its dependencies. To add PHPUnit Headless as a local, per-project dependency to your project, you simply add the following line to your project's composer.json file.

    "require": {
        "jakoch/phpunit-headless": "dev-master"