PHPackages                             buyplaytix/phantomjs-test - 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. buyplaytix/phantomjs-test

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

buyplaytix/phantomjs-test
=========================

Allows PHPUnit to test using PhantomJS.

2.0(9y ago)81.5kApache-2.0PHPPHP &gt;=5.3.2

Since Jun 7Pushed 9y ago2 watchersCompare

[ Source](https://github.com/tthomas48/phantomjs-test)[ Packagist](https://packagist.org/packages/buyplaytix/phantomjs-test)[ RSS](/packages/buyplaytix-phantomjs-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

phantomjs-test
==============

[](#phantomjs-test)

Allows PHPUnit to test using PhantomJS.

A Basic Test
------------

[](#a-basic-test)

```
class BasicTest extends \PHPUnit_Framework_TestCase {
  public function setUp() {
    $this->driver = new \PhantomJS\Driver($this);
  }
  public function testPage() {
    $html = "Hi";

    $this->driver->assertTrue("h1 exists", "$('h1').length == 1");
    $this->driver->assertTrue("h1 value is Hi", "$('h1').html() == 'Hi'");
    $this->driver->test($html);
  }
}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3623d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dee2c564064cdce376650c7a5ce4e1fbd3a760e796002144c425de06ad44234?d=identicon)[tthomas48](/maintainers/tthomas48)

---

Top Contributors

[![tthomas48](https://avatars.githubusercontent.com/u/168526?v=4)](https://github.com/tthomas48 "tthomas48 (10 commits)")

### Embed Badge

![Health badge](/badges/buyplaytix-phantomjs-test/health.svg)

```
[![Health](https://phpackages.com/badges/buyplaytix-phantomjs-test/health.svg)](https://phpackages.com/packages/buyplaytix-phantomjs-test)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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