PHPackages                             kentaro-a/headless-testing-for-cakephp - 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. kentaro-a/headless-testing-for-cakephp

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

kentaro-a/headless-testing-for-cakephp
======================================

Headless Browser Testing With Selenium For CakePHP3 Apps

017PHP

Since Aug 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kentaro-a/headless-testing-for-cakephp)[ Packagist](https://packagist.org/packages/kentaro-a/headless-testing-for-cakephp)[ RSS](/packages/kentaro-a-headless-testing-for-cakephp/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

HeadlessTestingForCakePHP
=========================

[](#headlesstestingforcakephp)

Headless Browser Testing With Selenium For CakePHP3 Apps. This uses Facebook Webdriver and Selenium Standalone Server.

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

[](#installation)

```
$ composer require kentaro-a/headless-testing-for-cakephp

```

You have to get google-chrome.

```
$ curl https://intoli.com/install-google-chrome.sh | bash

```

Driver you want to use.
ex) If you use ChromeDriver you should get its binary from here.

Usage
-----

[](#usage)

#### Launch Selenium Standalone Server as Daemon.

[](#launch-selenium-standalone-server-as-daemon)

```
$ vendor/se/selenium-server-standalone/bin/selenium-server-standalone -port 60002 -log "/tmp/selenium.log" > /dev/null 2>&1 &

```

#### Testing

[](#testing)

Before testing you have to make test code in tests/TestCase/ More about test code, you can see example. Execute cakephp3 test like below.

```
$ vendor/bin/phpunit tests/TestCase/HeadlessSampleTest.php --filter test001

```

### Tips

[](#tips)

- Make sure processes

```
$ ps aux|grep -e selenium -e chrome

```

- Kill chrome and selenium If you cannot kill the processes, you should try "kill -9 process" forcibly.

```
$ pkill -f chrome ; pkill -f selenium

```

- If you cannot create driver make sure whether your port is occupied or not by zombie.

```
$ lsof -i:60002

```

- Xpath tip Chrome Addon [ChroPath](https://chrome.google.com/webstore/detail/chropath/ljngjbnaijcbncmcnjfhigebomdlkcjo) is the easiest way to get a xpath of specific element.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11267597?v=4)[kentaro-a](/maintainers/kentaro-a)[@kentaro-a](https://github.com/kentaro-a)

---

Top Contributors

[![kentaro-a](https://avatars.githubusercontent.com/u/11267597?v=4)](https://github.com/kentaro-a "kentaro-a (17 commits)")

### Embed Badge

![Health badge](/badges/kentaro-a-headless-testing-for-cakephp/health.svg)

```
[![Health](https://phpackages.com/badges/kentaro-a-headless-testing-for-cakephp/health.svg)](https://phpackages.com/packages/kentaro-a-headless-testing-for-cakephp)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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