PHPUnit Headless
Branch | Downloads | Unit Tests | Coverage |
---|---|---|---|
PHPUnit Headless is a PHPUnit extension which provides wrappers to PhantomJS and SlimerJS.
Information
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.
- Google support via PhantomJS + CasperJS + jQuery
- Firefox support via SlimerJS + CasperJS + jQuery
- QUnit for Javascript unit-tests
- YSlow for page performance analysis
Requirements
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"
}
}
License
- BSD 3-Clause License - http://www.opensource.org/licenses/BSD-3-Clause