PHPackages                             phpunit/phpunit-selenium - 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. phpunit/phpunit-selenium

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

phpunit/phpunit-selenium
========================

Selenium Server integration for PHPUnit

9.0.1(5y ago)59610.9M↓17.8%267[94 issues](https://github.com/giorgiosironi/phpunit-selenium/issues)[5 PRs](https://github.com/giorgiosironi/phpunit-selenium/pulls)20BSD-3-ClausePHPPHP &gt;=7.3

Since Sep 28Pushed 3y ago46 watchersCompare

[ Source](https://github.com/giorgiosironi/phpunit-selenium)[ Packagist](https://packagist.org/packages/phpunit/phpunit-selenium)[ Docs](https://github.com/giorgiosironi/phpunit-selenium)[ RSS](/packages/phpunit-phpunit-selenium/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (29)Used By (20)

PHPUnit-Selenium [![Build Status](https://camo.githubusercontent.com/8f5fc22086fbdb9a27d9ad18038cbf8ea8137f08d14daa19adda7a696de7d83c/68747470733a2f2f7472617669732d63692e6f72672f67696f7267696f7369726f6e692f706870756e69742d73656c656e69756d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/giorgiosironi/phpunit-selenium)

This package contains a Selenium2TestCase class that can be used to run end-to-end tests against Selenium 2.

Installing
----------

[](#installing)

Use [Composer](https://getcomposer.org) and run `composer require --dev phpunit/phpunit-selenium`.

Requirements
------------

[](#requirements)

- Version `9.x` supports PHPUnit 9.x and is compatible with PHP 7.3+
- Version `8.x` supports PHPUnit 8.x and is compatible with PHP 7.2+
- Version `7.x` supports PHPUnit 7.x and is compatible with PHP 7.1+

Older unsupported lines which will probably see no new releases:

- `4.x` mainline supports (only) PHPUnit 6.x. This version is only compatible with PHP 7
- `3.x`: supports PHPUnit 5.x. Only compatible with PHP 5.6 and PHP 7.
- `2.x`: supports PHPUnit &gt;= 4.8 instead.

Both these supported lines only work with the Selenium 2 API, using the `Selenium2TestCase` class.

The old line `1.x` is not maintained anymore, but will continue to be available for usage of `SeleniumTestCase`.

Please direct pull requests to [giorgiosironi/phpunit-selenium](https://github.com/giorgiosironi/phpunit-selenium) for automated testing upon merging. Pull requests should be feature branches containing all the commits you want to propose.

Running the test suite
----------------------

[](#running-the-test-suite)

#### Via Vagrant

[](#via-vagrant)

Just run the following Vagrant commands (a minimal version of `v1.7` is required) and everything will be set up for you. The first start will take some time which depends on the speed of your connection (and less - speed of your computer):

```
vagrant up
vagrant provision
vagrant ssh

cd /vagrant
vendor/bin/phpunit Tests

```

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity68

Solid adoption and visibility

Community52

Growing community involvement

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~115 days

Recently: every ~131 days

Total

27

Last Release

1987d ago

Major Versions

2.0.2 → 3.0.12016-03-26

2.0.3 → 4.0.02017-08-20

4.1.0 → 7.0.02019-07-02

7.0.0 → 8.0.02020-03-17

8.x-dev → 9.0.02020-12-08

PHP version history (6 changes)1.2.9PHP &gt;=5.3.3

3.0.0PHP &gt;=5.6

4.0.0PHP &gt;=7.0

7.0.0PHP &gt;=7.1

8.0.0PHP &gt;=7.2

9.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/92673a285b279d163bc6d6bb190f3e6663bd96d0e93e3f32cc671100a337aecf?d=identicon)[giorgiosironi](/maintainers/giorgiosironi)

---

Top Contributors

[![giorgiosironi](https://avatars.githubusercontent.com/u/160299?v=4)](https://github.com/giorgiosironi "giorgiosironi (603 commits)")[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (527 commits)")[![pajon](https://avatars.githubusercontent.com/u/921138?v=4)](https://github.com/pajon "pajon (72 commits)")[![mlively](https://avatars.githubusercontent.com/u/176150?v=4)](https://github.com/mlively "mlively (44 commits)")[![zerkms](https://avatars.githubusercontent.com/u/302295?v=4)](https://github.com/zerkms "zerkms (25 commits)")[![jlipps](https://avatars.githubusercontent.com/u/605053?v=4)](https://github.com/jlipps "jlipps (21 commits)")[![velovint](https://avatars.githubusercontent.com/u/184136?v=4)](https://github.com/velovint "velovint (18 commits)")[![lexaurin](https://avatars.githubusercontent.com/u/428302?v=4)](https://github.com/lexaurin "lexaurin (16 commits)")[![paulbriton](https://avatars.githubusercontent.com/u/9981667?v=4)](https://github.com/paulbriton "paulbriton (15 commits)")[![thewunder](https://avatars.githubusercontent.com/u/1265740?v=4)](https://github.com/thewunder "thewunder (9 commits)")[![petrkotek](https://avatars.githubusercontent.com/u/5679032?v=4)](https://github.com/petrkotek "petrkotek (6 commits)")[![chr0n1x](https://avatars.githubusercontent.com/u/1102319?v=4)](https://github.com/chr0n1x "chr0n1x (6 commits)")[![julianseeger](https://avatars.githubusercontent.com/u/3258762?v=4)](https://github.com/julianseeger "julianseeger (5 commits)")[![bayandin](https://avatars.githubusercontent.com/u/864213?v=4)](https://github.com/bayandin "bayandin (4 commits)")[![davidsickmiller](https://avatars.githubusercontent.com/u/172005?v=4)](https://github.com/davidsickmiller "davidsickmiller (3 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (3 commits)")[![gsouf](https://avatars.githubusercontent.com/u/3215399?v=4)](https://github.com/gsouf "gsouf (3 commits)")[![tkurnosova](https://avatars.githubusercontent.com/u/1109313?v=4)](https://github.com/tkurnosova "tkurnosova (3 commits)")[![pankaj-a](https://avatars.githubusercontent.com/u/9896838?v=4)](https://github.com/pankaj-a "pankaj-a (3 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (3 commits)")

---

Tags

testingphpunitxunitselenium

### Embed Badge

![Health badge](/badges/phpunit-phpunit-selenium/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222163.1k1](/packages/lmc-steward)[sauce/sausage

PHP version of the Sauce Labs API

70807.6k3](/packages/sauce-sausage)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)[juampi92/test-seo

Easy way to test your SEO

26341.0k](/packages/juampi92-test-seo)

PHPackages © 2026

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