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 yesterday

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 14% 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://www.gravatar.com/avatar/4dc3823e71ba9cc0f53bf8976b15ea57a29bf2b56efd3a83ce75f2637d9a558f?d=identicon)[kentaro-a](/maintainers/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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/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.8M754](/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.1k](/packages/orchestra-testbench)

PHPackages © 2026

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